Skip to content

motss/c8-code-coverage-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Incorrect code coverage report

For unknown reason, code coverage report generated by c8 is showing incorrect result despite all branches are covered.

I even tested it with compiled JavaScript files by swc and the result remains unchanged when there is no additional code generated found at the said line.

Actual behavior

additional line reported

There is 1 additional branch has been reported not being covered.

Expected beahvior

all lines are covered

All lines are covered and c8 should be able to pick up the result correctly.

How to test

  1. Run npm i to install depedencies
  2. Run npm t to run test with code coverage collection

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published