-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
nyc 15 gives no coverage without the useSpawnWrap option #1303
Comments
I am not able to reproduce this issue, Fedora 30 is what I run locally, I tested with node 12.16.2 installed by nvm. I tested ubuntu under docker using the This is an important issue for us to figure out as Your environment info lists node 12.16.1 as being installed to |
@coreyfarrell Thank you for answering. My ubuntu just updated the node version to I suppose we can close here, unless you want to keep digging. |
Thanks for the update. This is odd as I'm not seeing the issue using 12.16.1 on Fedora either. Without being able to reproduce I think we can close this issue, if you do ever see it again please be sure to post a new issue! |
@coreyfarrell do you reproduce if you employ ?
bug looks coming of the usage of On my pc, without the wdyt of replacing |
Worker threads are not supported by spawn-wrap at all. node-preload is the replacement, if it is failing in a case where spawn-wrap worked I need to see a reproducible demo suit can be fixed. Be aware spawn-wrap fails in many situations, especially on Windows. |
Link to bug demonstration repository
https://github.com/adjerbetian/nyc-bug-demo-use-spawn
Expected Behavior
I would want to have the coverage, but I get nothing in the output
I tried to debug, and when I use the flag
--use-spawn-wrap
I get the expected result:📝 This problem does not occur on
nyc@14
.Observed Behavior
Troubleshooting steps
npx nyc mocha
--> ❌ no coveragenpx nyc --use-spawn-wrap mocha
--> ✔️ coveragecache: false
in my nyc configEnvironment Information
The text was updated successfully, but these errors were encountered: