tape-decorate

1.0.2 • Public • Published

tape-decorate

Decorate your tape tests for greater extensibility.

Ensures tape.only and tape.skip are also decorated to preserve behaviour.

Install

npm install tape-decorate --save-dev

Usage

const tape = require('tape');
const decorate = require('tape-decorate')(tape);

const test = decorate(test => (...args) => { 
    const cb = args.pop();      
    test(...args, t => {
         // custom code here
         return cb(t);
    );
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    38
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    38
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i tape-decorate

Weekly Downloads

38

Version

1.0.2

License

MIT

Unpacked Size

1.34 kB

Total Files

5

Last publish

Collaborators

  • mattriley