@supertape/engine-loader
supertape stub operator
Last updated 5 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (3 months ago)

10 Versions

  • 4.0.0                                ...           3 months ago
  • 3.0.1                                ...           3 months ago
  • 3.0.0                                ...           3 months ago
  • 2.0.0                                ...           3 years ago
  • 1.1.3                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (15)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |