1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 | var Test = require('./test.js') require('exit-code') var tap = new Test() module.exports = tap Iif (tap._timer && tap._timer.unref) tap._timer.unref() tap._name = 'TAP' process.on('exit', function (code) { tap.endAll() Iif (!tap._ok && code === 0) process.exitCode = 1 }) tap.pipe(process.stdout) tap.plan = tap.plan.bind(tap) tap.test = tap.test.bind(tap) tap.mocha = require('./mocha.js') tap.mochaGlobals = tap.mocha.global tap.Test = Test tap.synonyms = require('./synonyms.js') |