-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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: mocha fails with spawn EINVAL
on windows with node 22
#5162
Comments
Our windows tests passes? See eg. #5185. Are you sure this issue is with cd eo2js-runtime && grunt |
And the code path that calls Line 105 in b2a6358
mocha/test/integration/esm.spec.js Line 75 in 819b172
Maybe its this spawn that you are hitting instead? https://github.com/Rowno/grunt-mocha-cli/blob/be6eeb40cac537b8b016c6693956574ab153a59c/lib/index.js#L127 |
👋 friendly ping @maxonfjvipon, what do you think? |
Closing as this doesn't seem to be a Mocha thing. Cheers! 🤎 |
Bug Report Checklist
faq
label, but none matched my issue.Expected
Tests with mochajs successfully start to execute without errors on GHA CI on windows
Actual
CI fails with:
Running "mochacli:test" (mochacli) task Warning: spawn EINVAL Use --force to continue. Aborted due to warnings.
Tests are not even started to execute.
Example of failed pipeline: https://github.com/objectionary/eo2js/actions/runs/9693490408/job/26749043096
Minimal, Reproducible Example
I run just regular
js
tests via GHA on windows usingGruntfile.js
:regular.test.js:
Versions
Full CI script is here
Additional Info
My little research tells me that issue is related to April node security release and can be resolved by passing
{ shell: true }
option tospawn
function. But here there's no such option. I think the problem may be hereThe text was updated successfully, but these errors were encountered: