-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug] nyc fails with PnP on Windows #1841
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
We couldn't reproduce your issue (all the assertions passed on master). |
I have done some more investigation on this issue and have a workaround for now. tl;dr: So, However, Node before v12 cannot use a quoted path for In But that means that behavior is always enabled on Windows since the paths to As noted, I am working around that by downgrading to |
* migrate to Yarn 3 * fix broken cache test * update CI node versions * pin node-preload to 0.2.0 Due to yarnpkg/berry#1841
Describe the bug
When using PnP on Windows, running
nyc
fails with the following error:This does not happen and
nyc
correctly collects coverage when:node-modules
linkernyc
inside a docker container using WSL2 backendnyc
on a Linux (specifically CentOS 7) VMTo Reproduce
The minimal information needed to reproduce your issue (ideally a package.json with a single dep). Note that bugs without minimal reproductions might be closed.
IMPORTANT: We strongly prefer reproductions that use Sherlock. Please check our documentation for more information: https://yarnpkg.com/advanced/sherlock
Reproduction
Environment if relevant (please complete the following information):
Additional context
istanbuljs/nyc#1308 probably relevant? However, unlike
pnpm
, runningyarn nyc --use-spawn-wrap
(Windows, PnP) will causenyc
to not run the given test command at all and collects no coverage.The text was updated successfully, but these errors were encountered: