Description
After following the instructions in the release notes and nyc's updated README, I am unable to get v11.0.0
to generate coverage with nyc
v6.6.1
. Strangely, however, simply downgrading __coverage__
to v1.11.111
fixes the issue. I'm frankly not sure if this is an issue with __coverage__
, nyc
, or my own error.
Here is an extremely simple proof-of-problem that will hopefully allow anyone to replicate the issue:
https://github.com/chriszarate/nyc-coverage-11.0.0
The folder coverage-11.0.0
demonstrates the problem. The output of npm test
shows an empty coverage report; the .nyc_output
folder is created but is empty. To replicate:
cd coverage-11.0.0
npm i
npm test
The folder coverage-1.11.111
demonstrates working coverage output with the only change being a downgrade to v1.11.111
. The .nyc_output
contains the expected JSON output.
Any guidance you could provide on how to troubleshoot this myself would be appreciated. Please let me know if this should be filed with nyc
or elsewhere.