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.
There is 1 additional branch has been reported not being covered.
All lines are covered and c8
should be able to pick up the result correctly.
- Run
npm i
to install depedencies - Run
npm t
to run test with code coverage collection