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