
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
jest-html-report-pro
Advanced tools
Professional HTML test report generator with interactive charts for Jest test results
🚀 Professional HTML test report generator with interactive Chart.js visualizations for Jest test results.
✨ Interactive Charts
🎨 Modern UI/UX
📊 Comprehensive Reports
npm install --save-dev jest-html-report-pro
npm install -g jest-html-report-pro
First, run your Jest tests and output the results to a JSON file:
jest --json --outputFile=test-results.json
Or add to your package.json scripts:
{
"scripts": {
"test:report": "jest --json --outputFile=test-results.json && jest-html-report"
}
}
# Using default settings
jest-html-report
# Custom input/output files
jest-html-report -i test-results.json -o my-report.html
# Custom title and subtitle
jest-html-report -t "My Project Tests" -s "Sprint 23 - QA Report"
Options:
-i, --input <file> Input JSON file from Jest (default: test-results.json)
-o, --output <file> Output HTML file (default: test-report.html)
-t, --title <title> Report title (default: Test Report)
-s, --subtitle <text> Report subtitle (default: Generated on [date])
-h, --help Show help message
You can also use it programmatically in your Node.js scripts:
const { generateReport } = require('jest-html-report-pro');
const fs = require('fs');
// Read Jest JSON results
const jestResults = JSON.parse(fs.readFileSync('test-results.json', 'utf8'));
// Generate HTML report
const html = generateReport(jestResults, {
title: 'My Project Tests',
subtitle: 'Generated on ' + new Date().toLocaleDateString(),
});
// Write to file
fs.writeFileSync('report.html', html, 'utf8');
console.log('Report generated successfully!');
Add to your package.json:
{
"scripts": {
"test": "jest",
"test:cov": "jest --coverage",
"test:report": "jest --json --outputFile=test-results.json && jest-html-report -t 'NestJS Test Report' -o test-report.html"
}
}
Then run:
npm run test:report
The generated HTML report includes:
The report automatically organizes tests based on your Jest describe blocks:
describe('MyService', () => {
describe('myMethod()', () => { // Functionality level
describe('Happy Path', () => { // Category level
it('should work correctly', ...); // Test level
});
});
});
MIT
Your Name
Contributions are welcome! Please feel free to submit a Pull Request.
Found a bug or have a feature request? Please open an issue on GitHub.
FAQs
Professional HTML test report generator with interactive charts for Jest test results
We found that jest-html-report-pro demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.