Decorate your tape tests for greater extensibility.
Ensures tape.only
and tape.skip
are also decorated to preserve behaviour.
npm install tape-decorate --save-dev
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);
);
});