npx jest --coverage

Category: Node.js & npm/yarn

npx jest --coverage

Run tests with Jest and generate a code coverage report without a global install

Runs your Jest test suite and generates a code coverage report showing which lines of your source code are hit by tests.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.