🐛 Bug: Error in mochaGlobalTeardown is swallowed and exits with code 0 #5208
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
The error should be logged and the tests should exit with a non-zero exit code
Actual
The error is swallowed and the tests always exit with a 0 exit code (even if some tests failed)
Minimal, Reproducible Example
Versions
Mocha v10.7.3, Node v20.15.1
Additional Info
No response
The text was updated successfully, but these errors were encountered: