Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gtape

micnews19MIT1.0.1

Version of tape that works with generators (but also without, your call)

tape, test, generators

readme

gtape

Version of tape that works with generators (but also without, your call)

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install gtape --save

Usage

'use strict';

var test = require("gtape")(require('tape'));
var wait = require('co-wait');

test(function (t) {
  t.pass('this passes');
  t.end();
});

test('title', function (t) {
  t.pass('this passes');
  t.end();
});

test(function *(t) {
  yield wait(5);
  t.pass('generator passes');
});

test('title', function *(t) {
  yield wait(5);
  t.pass('generator passes');
});

Tests

npm install
npm test

Dependencies

  • co: generator async control flow goodness
  • is-generator: Check whether a value is a generator or generator function

Dev Dependencies

  • co-wait: setTimeout generator style
  • tape: tap-producing test harness for node and browsers

License

MIT

Generated by package-json-to-readme