-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
area: repository toolingconcerning ease of contributionconcerning ease of contributionstatus: accepting prsMocha can use your help with this one!Mocha can use your help with this one!
Description
Tooling Suggestion Checklist
- I have tried restarting my IDE and the issue persists.
- I have pulled the latest
mainbranch of the repository. - I have read and agree to Mocha's Code of Conduct and Contributing Guidelines
- I have searched for related issues and issues with the
faqlabel, but none matched my issue. - I want to provide a PR to resolve this
Overview
Example from #5408 -> https://github.com/mochajs/mocha/actions/runs/18016406085/job/51262764441?pr=5408:
1) --parallel
pool shutdown
during normal operation
should not leave orphaned processes around:
Error: Error: spawn wmic ENOENT
at ChildProcess.<anonymous> (node_modules\pidtree\lib\bin.js:34:10)
at ChildProcess.emit (node:events:524:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
2) --parallel
pool shutdown
during operation with --bail
should not leave orphaned processes around:
Error: Error: spawn wmic ENOENT
at ChildProcess.<anonymous> (node_modules\pidtree\lib\bin.js:34:10)
at ChildProcess.emit (node:events:524:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
This happens on:
- 18.20.8
- 20.19.4
- 22.18.0
- 24.6.0
This does not happen on the same Node.js versions in ubuntu-latest machines.
Additional Info
That 18.20.8 run also showed a failure on --watch:
3) --watch
when enabled
with required hooks
mochaHooks.afterAll runs as expected:
UnexpectedError:
expected 1 to equal 2
at D:\a\mocha\mocha\test\integration\options\watch.spec.js:362:13
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
set UNEXPECTED_FULL_TRACE=true to see the full stack trace
Metadata
Metadata
Assignees
Labels
area: repository toolingconcerning ease of contributionconcerning ease of contributionstatus: accepting prsMocha can use your help with this one!Mocha can use your help with this one!