npm.io
1.0.1 • Published 9 years agoCLI

tap_bail

Licence
CC0-1.0
Version
1.0.1
Deps
4
Vulns
0
Weekly
0
Stars
1

tap_bail

Stream that receives TAP and exits on first failing test.

install

npm install tap_bail

example

# run tests, format TAP with tap-spec, exit on first failing test
npm test | tap_bail | tap-spec
const tapBail = require('tap_bail')

const stream = tapBail()
  .on('error', () => {}) // failing test
  .on('end', () => {}) // all tests passed

Keywords