🐛 Bug: Unhandled rejections cause parallel tests to succeed when they should fail #5184
Open
3 of 4 tasks
Labels
status: accepting prs
Mocha can use your help with this one!
type: bug
a defect, confirmed by a maintainer
Bug Report Checklist
faq
label, but none matched my issue.Expected
mocha to run the rests and exit with a non-
0
exit codeActual
mocha exits with
0
and prints the following output
which includes the failing test but not the final summary
Minimal, Reproducible Example
https://github.com/cinder-fish/mocha-parallel-bug
Essentially one test file sets up a timeout which will throw an unhandled error
And another has a failing test that delays long enough that this fires
When run with
parallel: true
this passes despite the failing testWhen run with
parallel: false
this fails as expectedVersions
Additional Info
No response
The text was updated successfully, but these errors were encountered: