1.0.1 • Published 8 years ago
tape-co v1.0.1
tape-co
Generator interface for tape
Installation
$ npm install tape-co
Usage
Just use it like tape, except your functions will be wrapped in co and you will no longer have to remember to call .end()
.
import test from 'tape-co'
import myThing from '..'
test('my thing should work', function *(t) {
const result = yield myThing(someValue)
t.ok(validate(result))
})
There's not a lot of documentation because that's really all there is to it. test.only/test.skip
will still work as normal.
Why not just use AVA?
Mostly because ava doesn't work in browsers yet.
License
MIT