Package Exports
- tap-render
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tap-render) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
tap-render
A readable stream of TAP output
Refactored out of substack/tape
Example
var Render = require("tap-render")
var r = Render()
r.begin()
// TAP version 13
r.push({
name: "first test"
})
// # first test
r.push(null, {
ok: true
})
// ok 1
r.push(null, {
ok: true
, name: "this test passes"
})
// ok 2 this test passes
r.push(null, {
ok: false
, name: "this test fails"
, operator: "equal"
, expected: "one"
, actual: "two"
})
/*
not ok 2 this test fails
---
operator: equal
expected: "one"
actual: "two"
...
*/
r.close()
/*
1..3
# tests 3
# pass 2
# fail 1
*/
r.pipe(process.stdout)
Installation
npm install tap-render
Contributors
- Raynos