🐛 Bug: Setting readOnly properties in breakCircularDeps
breaks the reporter in parallel
mode with allow-uncaught
#5188
Labels
status: in triage
a maintainer should (re-)triage (review) this issue
type: bug
a defect, confirmed by a maintainer
Bug Report Checklist
faq
label, but none matched my issue.Expected
Tests should run perfectly even if a
it
block (test) is failingError in it block (test) should not break
parallel-buffered-runner.js
even if--allow-uncaught
is passedActual
All the tests get executed in the expected behaviour, but before the EVENT_RUN_END the process fails while serializing the results with the below error:
Failure point:
Reason: Trying to set a read-only property, which only has a getter
Minimal, Reproducible Example
Config:
Library dependency (easy to reproduce):
axios: 1.6.8
Create a suite, create a test in it, and make an incorrect/failing API call
Run the tests it will break
Versions
Mocha version: 10.7.0
Node: v20.15.1
OS: MacOS Sonoma 14.2.1 (23C71)
Additional Info
No response
The text was updated successfully, but these errors were encountered: