Detalhes do pacote

tap_bail

m59peacemaker7CC0-1.01.0.1

Stream that receives TAP and exits on first failing test.

tap, test, fail, bail

readme (leia-me)

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