
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
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
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
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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.