RangeError: Maximum call stack size exceeded
when toMatchObject
with array circular references
#5538
Closed
6 tasks done
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
Similar to #5533, but the cause of the issue looks slightly different, so I'm creating a separate issue.
The failing case is taken from Jest's issue:
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-ysdtzj?file=test%2Frepro.test.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: