@supertape/engine-loader
v2.0.0
Published
supertape stub operator
Downloads
1,118
Maintainers
Readme
@supertape/engine-loader
Load operators into supertape
.
Install
npm i @supertape/engine-loader -D
Examples
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