Open aptivator opened 1 year ago
https://github.com/aptivator/ttt-engine-heuristic-nyc-issue
run npm run test:coverage to see nyc output run npm test:coverage:c8 to see c8 output
npm run test:coverage
npm test:coverage:c8
All lines should be shown as covered (output from c8):
The last of the imports of the assessed files are shown as uncovered:
cache: false
System: OS: Linux 4.15 Ubuntu 16.04.3 LTS (Xenial Xerus) CPU: (8) x64 Intel(R) Core(TM) i7-3840QM CPU @ 2.80GHz Memory: 19.47 GB / 23.48 GB Binaries: Node: 17.4.0 - ~/.nvm/versions/node/v17.4.0/bin/node npm: 8.3.1 - ~/.nvm/versions/node/v17.4.0/bin/npm npmPackages: @babel/cli: ^7.10.5 => 7.19.3 @babel/core: ^7.11.1 => 7.20.5 @babel/node: ^7.10.5 => 7.20.5 @babel/preset-env: ^7.11.0 => 7.20.2 @babel/register: ^7.10.5 => 7.18.9 @rollup/plugin-babel: ^5.3.1 => 5.3.1 nyc: ^15.1.0 => 15.1.0
Link to bug demonstration repository
https://github.com/aptivator/ttt-engine-heuristic-nyc-issue
run
npm run test:coverage
to see nyc output runnpm test:coverage:c8
to see c8 outputExpected Behavior
All lines should be shown as covered (output from c8):
Observed Behavior
The last of the imports of the assessed files are shown as uncovered:
Troubleshooting steps
cache: false
in my nyc configEnvironment Information