-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Stackoverflow in toMatchObject when matching w/ recursive object #14734
Comments
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
We should start by adding a warning to the docs I guess, but it would be nice to support this |
As far as I've tested, the issue doesn't happen if the circular reference is not in an array nor if it's in a set. It also works if it's nested deeper in. I can take a crack at fixing this issue if no one else is working on it. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
29.7.0
Steps to reproduce
Using
expect
29.7.0Here is a contrived example (real usage here / here)
Expected behavior
Either document that recursive objects are not supported, or support them.
Actual behavior
RangeError: Maximum call stack size exceeded
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: