SMST 2 TEXT
A library to convert smst to plain text and formatted text.
For a complete demo on library usage check out SuitestAutomation/translate-demo repo.
Usage example:
import {translateTestLineResult} from '@suitest/translate';
import {toText} from '@suitest/smst-to-text';
const testLineDefinition = {};
const testLineResult = {};
const appConfig = {};
const smst = translateTestLineResult({
testLine: testLineDefinition,
lineResult: testLineResult,
appConfig,
});
const plainTextLine = toText(smst);
const formattedTextLine = toText(smst, true);
Output examples
Plain text

Formatted text
