
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
html-jest-reporter
Advanced tools
A jest test results processor for generating a summary in HTML.
This plugin was inspired by jest-html-reporter by Johan Hargne
Test Report with flag enabled:
Test Report with flag disabled:
This plugin combines all the Test suite and shows the report in the combined manner at the Top. It can also show the report on the basis of Number of Positive and Negative Test cases (Pre Condition: You will have to prefix your test case name by P_ (For positive Test case) or N_ (For negative Test case))
npm install html-jest-reporter
Configure Jest to process the test results by adding the following entry to the Jest config (jest.config.js):
{
"testResultsProcessor": "./node_modules/html-jest-reporter"
}
Then when you run Jest from within the terminal, a file called test-report.html will be created within your root folder containing information about your tests.
Although jest.config.js is specifically created for configuring Jest (and not this plugin), it is possible to configure Jest from within package.json by adding the following as a new line:
"jest": { "testResultsProcessor": "./node_modules/html-jest-reporter" }
This plugin is compatible with Node version ^4.8.3
The configurations are done directly within your package.json file
[Default: false]
This flag enabled the test case category (Positive or Negative) wise reporting.
[Default: "./test-report.html"]
The path to where the plugin will output the HTML report. The path must include the filename and end with .html
{
...
"html-jest-reporter": {
"pageTitle": "Your test suite",
"outputPath": "test-report/index.html",
"includeFailureMsg": false,
"styleOverridePath": "src/teststyle.css",
"enableCategoryWiseReport": true
}
}
FAQs
Jest test results processor for generating a summary in HTML
The npm package html-jest-reporter receives a total of 0 weekly downloads. As such, html-jest-reporter popularity was classified as not popular.
We found that html-jest-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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.