supertape operator simplifies work with colored and indented output.
npm i @supertape/operator-strip -D
Adds next operators to work with:
import {extend} from 'supertape';
import strip from '@supertape/operator-strip';
import montag from 'montag';
const test = extend(strip);
test('redlint: strip', (t) => {
const [, result] = redlintTest(filesystem, {
branch,
});
const expected = montag`
# 🍄 hello
`;
t.stripEqual(result, expected);
t.end();
});import test, {strip} from 'supertape';
import montag from 'montag';
test('function called with no args', (t) => {
const expected = montag`
# 🍀 hello
`;
t.stripEndEqual(result, expected);
t.end();
});MIT