-
-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No coverage being generated in 14.1.0 #1102
Comments
I just tested your demo repository with |
Ah I see, didn't like my Linux config for some reason. Works on Windows. Why does this require the extra configuration now when performing mocha tests on generated |
nyc looks at the source-maps to determine what source produced generated files. This is Before a minute ago the changelog only mentioned that The plan is that nyc@15 will enable |
Great, thanks for updating that. Will wait til 15.* to upgrade our packages. With remaining on 13.x is it possible to have the packages bumped to resolve the
|
Part of the problem with nyc@13 is that it bundled all dependencies, one of the major changes to nyc@14 is that we no longer bundle dependencies which solves this Work towards nyc 15 is beginning, partly because I want to change the default extension list sooner than later. You can follow progress at #1104. I'm closing this issue as I believe this was an issue of documentation (the changelog not being completely clear) and you've confirmed that your issue can be solved by updating the |
Fair enough, cheers. |
The suggestion here does not resolve this issue, this is not running via ts-node or any other typescript only method of running. In this very basic configuration it's simply running mocha over the generated
*.js
files.Also found no resolution attempting to use various configuration attempted in #1090
Link to bug demonstration repository
https://github.com/Codex-/nyc-bug
Steps to run
npm i
npm run build
npm run test
Test simply executes:
nyc --reporter=lcov --reporter=html mocha
where mocha is configured to only run*.test.js
files.Expected Behavior
lcov.info to be populated as 13.3.0 does:
13.3.0 lcov.info:
Observed Behavior
14.1.0 lcov.info:
Empty
This occurs with or without the suggested modification to the config
--extension='.ts'
.Troubleshooting steps
cache: false
in my nyc configEnvironment Information
Tested in Linux & Windows
Cheers.
The text was updated successfully, but these errors were encountered: