Socket
Socket
Sign inDemoInstall

@suitest/smst-to-html

Package Overview
Dependencies
2
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @suitest/smst-to-html

Utility to convert SMST to HTML


Version published
Weekly downloads
23
increased by64.29%
Maintainers
2
Install size
103 kB
Created
Weekly downloads
 

Readme

Source

SMST 2 HTML

A library to convert smst to HTML fragment.

For a complete demo on library usage check out SuitestAutomation/translate-demo repo.

Usage example:

import {translateTestLineResult} from '@suitest/translate';
import {toHtml} from '@suitest/smst-to-html';

// Fetch data you need to translate, e.g. using Suitest Network API
const testLineDefinition = {/* get line definition somehow */};
const testLineResult = {/* get line definition somehow */};
const appConfig = {/* get app configuration somehow */};

const smst = translateTestLineResult({
    testLine: testLineDefinition,
    lineResult: testLineResult,
    appConfig,
});

const htmlFragmentLine = toHtml(smst);

Output examples

HTML output

FAQs

Last updated on 19 Dec 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc