
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@munter/tap-render
Advanced tools
A readable stream of TAP output
Refactored out of [substack/tape][https://github.com/substack/tape/blob/35ba8a36f023361089d1d09c122a8288cb061ede/lib/render.js] by Raynos
Forked from Raynos/tap-render by Munter
tap-render
only emits the start and end of a valid TAP output
once even if there are multiple Render's. This is to allow
you to use multiple TAP outputting test frameworks in one
process.
If you want an individual Render
to output the correct TAP
header and footer on it's own pass the force option
var r = Render({ force: true })
var Render = require("tap-render")
var r = Render()
r.pipe(process.stdout)
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
*/
npm install tap-render
FAQs
A readable stream of TAP output
The npm package @munter/tap-render receives a total of 815 weekly downloads. As such, @munter/tap-render popularity was classified as not popular.
We found that @munter/tap-render demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.