https://github.com/motss/c8-code-coverage-bug
https://github.com/motss/c8-code-coverage-bug
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/motss/c8-code-coverage-bug
- Owner: motss
- Created: 2021-07-25T08:45:33.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-25T13:03:54.000Z (almost 4 years ago)
- Last Synced: 2025-02-11T12:53:06.671Z (5 months ago)
- Language: TypeScript
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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

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

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