You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rluvaton
changed the title
[Bug]:
[Bug]: object with throwing getter cant be run expect on
Aug 26, 2024
rluvaton
changed the title
[Bug]: object with throwing getter cant be run expect on
[Bug]: matcher error is not shown when the expected object has throwing getter
Aug 26, 2024
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
Version
29.7.0
Steps to reproduce
Repro - CodeSandbox
Run this:
Expected behavior
The matcher error should be thrown:
Actual behavior
The error custom was thrown making it impossible to know what was wrong
Additional context
I'm writing custom expect matchers that add assertions for HTTP response objects, and the
got
library has:in the response and I can't test my matcher error output message
This happens here:
jest/packages/jest-matcher-utils/src/deepCyclicCopyReplaceable.ts
Lines 105 to 107 in bd1c6db
I don't think that stringify should throw
Environment
The text was updated successfully, but these errors were encountered: