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.