nyc reports 100% coverage when c8 reports only 75% coverage.
$ cat t.js
t()
function t () {
return 42
}
$ ./node_modules/.bin/c8 node t.js
----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
----------|----------|----------|----------|----------|-------------------|
All files | 100 | 75 | 100 | 100 | |
t.js | 100 | 75 | 100 | 100 | 3 |
----------|----------|----------|----------|----------|-------------------|
$ node --version
v10.15.1
$ ./node_modules/.bin/c8 --version
3.4.0
nyc reports 100% coverage when c8 reports only 75% coverage.