[Bug]: Neither toThrow
, nor toStrictEqual
check additional properties of custom errors
#15378
Labels
toThrow
, nor toStrictEqual
check additional properties of custom errors
#15378
Version
29.7.0
Steps to reproduce
Stackbliz.
Expected behavior
Either of these to fail the test.
Actual behavior
Neither does.
Additional context
I've read that
toThrow
checks only themessage
property. How to check all properties? There is a third party package but I feel like this should be native to jest.Environment
This is reproducible in the stackblitz.
The text was updated successfully, but these errors were encountered: