-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Labels
Description
🚀 Feature Proposal
JS's Error
class has recently been enhanced with native support for chaining instances together during construction using a second parameter and the { cause: parentErrorInstance }
option.
It would be great if when a test fails because of a throw error the cause of the error would also be displayed.
Motivation
When wrapping errors the cause can give a lot of necessary information to help figure out why a test is failing
Example
N/A, this would just change the default formatter on test failure
Pitch
The changes to Error
are part of the ECMAScript standard and are available in Node 16 so more people will start using them.
tksst, richardscarrott, nbrustein and GerkinDev