jest-puppeteer coverage reports with monocart coverage reports
npm i monocart-coverage-reports jest-puppeteer puppeteer jest -D
Collect coverage data with hooks beforeAll
and afterAll
, see
- Create jest global-setup.js and global-teardown.js for generating coverage reports, see jest.config.js
- Set coverage options in config file mcr.config.js
npm run test
The coverage report will be found here: coverage-reports/index.html
Check monocart coverage reports for more coverage options.