tape-co

1.0.1 • Public • Published

tape-co

js-standard-style

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

/tape-co/

    Package Sidebar

    Install

    npm i tape-co

    Weekly Downloads

    6

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • ashaffer88