-
-
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
[email protected] does not work with babel-register and spawn #599
Comments
After I pinned |
@mysticatea the only difference between I can't seem to immediately reproduce the issue myself:
can you provide a repo of the specific problem, also it would be helpful if you opened a pull request on the spawn-wrap repository. |
This is a simple repro code: // test.js
const exec = require("child_process").exec
if (process.argv[2] !== "child") {
console.log("parent")
exec(`node "${process.argv[1]}" child`, { stdio: "inherit" }, (err) => {
console.error(err)
})
}
else {
console.log("child")
} $ ./node_modules/.bin/nyc --require babel-register node test.js |
Running into this when testing with AVA which uses Babel. I'm on macOS. :) |
@jeffijoe @mysticatea please give this a try:
the next release of nyc lands a fix for this. |
Thank you. I confirmed that |
Confirmed this resolves issue for me too, different reproduction scenario revolving around spawn. |
Please use the template provided below, when reporting bugs:
[email protected]
seems to failchild_process.exec
with--require babel-register
. Example: https://travis-ci.org/mysticatea/cpx/jobs/241057845#L891$ nyc --require babel-register npm run -s _mocha
Expected Behavior
No errors.
Observed Behavior
The following error looks to be thrown from
spawn-wrap
ofnyc
.Bonus Points! Code (or Repository) that Reproduces Issue
Forensic Information
Operating System:
Environment Information:
sh -c 'node --version; npm --version; npm ls' > output.txt
My machine is Windows 😄
Please see Travis CI log about environment.
The text was updated successfully, but these errors were encountered: