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 when using pnpm #1308
Comments
This is a bug in pnpm, a fix to pnpm/cmd-shim#3 should resolve the issue. The ability of |
Thanks for fast response. This situation make me struggling, the background is I am estimating the unit test frameworks. The choices are jest and mocha. Since jest@25 has performance issue although it supports code coverage directly, I decide to use mocha, and combined with nyc to get code coverage data. So can you suggest something to me?
Or, something else? |
I would advise against downgrading to nyc 14. For what it's worth nyc 14 always uses spawn-wrap. NYC 15 has other big fixes so even with Switching away from pnpm is an option though I don't want to throw shade at pnpm. If you have the ability to help them with a patch that would be great to see pnpm compatible with programs that need to append |
Thanks, I choose nyc@15 with |
The conflict with pnpm and node-preload occurs anytime node-preload is installed in a place where the absolute path contains any space, double-quote or backslash. Therefore it always happens on Windows as all absolute paths contain backslashes. The likely conflict in Linux/OSX would be if node-preload gets installed to a location with a space in the path. |
Issule simal to istanbuljs/nyc#1308 (i'm using nvm) Thanks to istanbuljs/nyc#1029 (comment), mainly
* add service field to tcpmanager logs * add correct type to logger * corect service name for logger * formatting * corect coverage settings Issule simal to istanbuljs/nyc#1308 (i'm using nvm) Thanks to istanbuljs/nyc#1029 (comment), mainly * remove circular require * remove final typescript mentions move typescript to a dev dependency * exclude the app launchers * test if deepcode accept this form of jsdoc * improve jsdocs * better type management * remove taprc
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Since this issue #1303 (comment) has been closed, so I think it is better to up a new one.
@coreyfarrell I can reproduce this issue by using the @adjerbetian's git repo: https://github.com/adjerbetian/nyc-bug-demo-use-spawn
My desktop is Windows 10 10.0.19041.208, and the node.js environment is:
The reproduce steps:
pnpm install [--shamefully-hoist]
npm run nyc:wrong
, and get this:npm run nyc:correct
will ok to get good result:If I repeat above steps in the WSL2, they are all ok except not so good performance.
But, If i use
npm install
in both of Windows and WSL2, they are all good.Then, I guess the package
node-preload
cannot handle links from pnpm installation on Windows.Expected Behaviour:
The text was updated successfully, but these errors were encountered: