
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
mocha-env-reporter
Advanced tools
A mocha reporter that switches output format between built-in 'spec' and customised CI reporters base on where tests are being executed - locally or ci. Actual switch is implemented by detecting an environment variable unique to each CI environment. The default is 'spec' builtin mocha reporter.
The reporter also supports an environment variable mocha_reporter
in which you can set an arbitrary environment reporter. This is useful if you use an unidentified continous integration service.
Currently supported custom CI environments (see defaults.json
):
npm install --save-dev mocha-env-reporter
In you package.json append --reporter mocha-env-reporter
to your mocha test command, ex.
...
"scripts": {
"test": "mocha --reporter mocha-env-reporter"
},
...
In order to override the choice of reporter simply set environment variable mocha_reporter
to the reporter name (example specs
).
The default reporters per environments are defined at defaults.json
Licensed under MIT License.
FAQs
ci/dev environment aware mocha reporter
The npm package mocha-env-reporter receives a total of 2,087 weekly downloads. As such, mocha-env-reporter popularity was classified as popular.
We found that mocha-env-reporter 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.