Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.