UNPKG

taper

Version:

Taper (a fork of tapr) is a tap test runner that shows an appropriate level of detail with colorized output.

17 lines (10 loc) 306 B
var test = require('tap').test; test('failing example which writes to stdout', function (t) { t.equal('cat', 'dog', 'purposefully making this fail for example'); console.error('I will log to stdout here.'); t.end(); }); test('successful example', function (t) { t.equal(1, 1); t.end(); });