Open dominikschreiber opened 1 year ago
Small update: c8 behaves as expected given the same input:
npx c8 --all -n file.mjs -r text node --test test.mjs
# …
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
file.mjs | 100 | 100 | 100 | 100 |
----------|---------|----------|---------|---------|-------------------
Repro
Also available as Gist: https://gist.github.com/dominikschreiber/76172650805f139787b151ef70222a22
Consider a file
and a test
Now run that test with
Expected Behavior
All lines of
file.mjs
are tested, so there should be 100% coverage, i.e.Observed Behavior
Troubleshooting steps
cache: false
in my nyc configEnvironment Information