Command
npm test -- --coverageExplanation
Generates a detailed coverage report showing which parts of your code are tested.
Examples
Generate coverage report
npm test -- --coverageGenerate HTML coverage report
npm test -- --coverage --coverageReporters=htmlSet coverage threshold
npm test -- --coverage --coverageThreshold=80