馃悰 Bug: Parallel mode crashes if test exception contains circular references #4552
Open
4 tasks done
Labels
area: parallel mode
Regarding parallel mode
status: accepting prs
Mocha can use your help with this one!
type: bug
a defect, confirmed by a maintainer
Prerequisites
faq
labelnode node_modules/.bin/mocha --version
(Local) andmocha --version
(Global). We recommend that you not install Mocha globally.Description
Parallel mode crashes or hangs if test exception contains circular references
Steps to Reproduce
1. Hangs if error has self reference:
Test file
test.js
Running following will simply hang:
2. Crashes if error has circular references passed within array properties
Test file
test.js
Running following
will result with an error as:
Expected behavior:
Originally thrown exception should surface in report
Versions
mocha --version
andnode node_modules/.bin/mocha --version
: 8.2.1node --version
: 15.5.1The text was updated successfully, but these errors were encountered: