2.0.0 • Published 2 years ago
@supertape/engine-loader v2.0.0
@supertape/engine-loader

Load operators into supertape.
Install
npm i @supertape/engine-loader -DExamples
import {loadOperators} from '@supertape/engine-loader';
import {
extend,
stub,
} from 'supertape';
const operators = await loadOperators(['stub']);
const test = extend(operators);
test('with operators', (t) => {
const fn = stub();
fn('hello');
t.calledWith(fn, ['hello']);
t.end();
});License
MIT