Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
tap-arc
A small (~24kB) TAP reporter with spec-like output, streaming, and failure diffing.
Compatible with Node.js 12+.
For a JavaScript project, save tap-arc
as a development dependency:
npm i -D tap-arc
Simply pipe tap output to tap-arc
.
Example npm test
script:
// package.json
"scripts": {
"test": "tape test/**/*.js | tap-arc"
}
💁
tap-arc
will format output from any tap reporter.tape
was used for testing.
Alternatively, use tap-arc
globally:
npm i -g tap-arc
tap-arc --help
Usage:
tap-arc <options>
Parses TAP data from stdin, and outputs a "spec-like" formatted result.
Options:
-v | --verbose
Output full stack trace
-p | --pessimistic | --bail
Immediately exit upon encountering a failure
example: tap-arc -p
--no-color
Output without ANSI escape sequences for colors
example: tap-arc --no-color
The entirety of the reporter lives in ./index.js
.
When building tap-arc
, it's helpful to try various TAP outputs. See package.json
"scripts"
for useful "tap-arc:*" commands to test passing and failing TAP.
npm run tap-arc:simple # used to create the screen shot above
The main library is snapshot tested (npm test
loads all snapshots to compare to current output). Create snapshots with the npm run make-snapshots
commands.
The snapshots are versioned by Node.js' major version, ie. node14
and node16
. But snapshots may vary between minor and patch versions of Node. (Line numbers of Node internals shift, causing changes in stack traces.) GitHub's Actions are set to use the latest Node.js 14.x and 16.x, so when testing and creating snapshots locally, do the same.
This is also why tape
is pinned as a development dependency. Update as needed, but recreate snapshots.
[0.3.1] - 2022-03-24
strict
instead of match
from tcompare
for more verbose diffsFAQs
spec-like TAP reporter
The npm package tap-arc receives a total of 681 weekly downloads. As such, tap-arc popularity was classified as not popular.
We found that tap-arc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.