wrapping-tape
Wrap tape tests to add setup, teardown and some syntax sugar to test definitions.
The functions passed into setup and teardown run as normal tape tests, you can call asserts and use t.end()
to finish them, they can work asynchronously.
You can also optionally specify the number of assertions expected when executing tests.
Example Setup / Teardown
var tape = ;var test =;
or
var test ={... do test setupt;}{... do test teardownt;};
Example Test Plan
var test = ;;
Install
$ npm install wrapping-tape