Skip to content

mattriley/tape-decorate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');

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

About

Decorate your tape tests for greater extensibility.

Topics

Resources

Stars

Watchers

Forks