@supertape/engine-loader

2.0.0 • Public • Published

@supertape/engine-loader NPM version Build Status Coverage Status

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

Package Sidebar

Install

npm i @supertape/engine-loader

Weekly Downloads

265

Version

2.0.0

License

MIT

Unpacked Size

5.13 kB

Total Files

6

Last publish

Collaborators

  • coderaiser