JestJS – show all uncovered lines in coverage report

Is there a way to print all of the uncovered lines?

I’m using React + TypeScript + Jest. In my project, I run npm test -- --coverage, and the file with the remaining uncovered lines is under the coverage directory:

<project name>\<directory>\<directory>\coverage\lcov-report\index.html

(Your file path may have a variation on the coverage part. :-))

Then I navigate to the file of interest:

code coverage results for file of interest

All lines highlighted in pink are uncovered:

line highlighted in pink

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)