@supertape/engine-loader
supertape stub operator
Last updated 6 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @supertape/engine-loader 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 4.0.0                                ...           latest (a year ago)

10 Versions

  • 4.0.0                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.0.0                                ...           3 years ago
  • 1.1.3                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Total 28
Today 0
This Week 0
This Month 21
Last Day 0
Last Week 10
Last Month 0
Dependencies (1)
Dev Dependencies (16)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE