/basictap

Light tap adherent test runner.

Primary LanguageJavaScriptMIT LicenseMIT

basictap

GitHub code size in bytes GitHub package.json version GitHub js-semistandard-style

Light tap adherent test runner.

  • Asyncronous tests run in parallel
  • Outputs tap syntax
  • Uses built in node assert library

Installation

npm install --save basictap

Example

const test = require('basictap');

test('basic test that passes', t => {
  t.plan(1);

  t.equal(1, 1);
});

test('basic test that passes with async', async t => {
  t.plan(1);

  const something = await doSomething();

  t.equal(something, 1);
});