Istanbul grouped HTML report. Generates code coverage report grouped by directory.
Install development dependency using NPM
npm install -D @lcov-viewer/istanbul-report
OR using YARN
yarn add -D @lcov-viewer/istanbul-report
Include reporter in Jest config
module.exports = {
// ...
coverageReporters: [
'@lcov-viewer/istanbul-report'
],
// ...
};
or specify as nyc reporter
nyc --reporter=@lcov-viewer/istanbul-report npm run test
nyc --reporter=@lcov-viewer/istanbul-report yarn test
A CLI conversion package: @lcov-viewer/cli