Skip to content

Jest: Upgrade jest to fix issue with logging scene objects#1426

Open
torkelo wants to merge 2 commits intomainfrom
fix-to-json-circular-issue
Open

Jest: Upgrade jest to fix issue with logging scene objects#1426
torkelo wants to merge 2 commits intomainfrom
fix-to-json-circular-issue

Conversation

@torkelo
Copy link
Copy Markdown
Collaborator

@torkelo torkelo commented Apr 10, 2026

Seems like jest did not always call toJSON on object prototypes (only instances) so we still have issues with jest crashing when logging scene object instances. Related to #1070

fixes issues like.

 Test suite failed to run

    TypeError: Converting circular structure to JSON

The latest jest fixes this issue. I was unable to create a test case for this as it only happens if an outer expect fails (not possible to replicate with an expect throws, for example).

We need to upgrade jest in core repo as well to fix it there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant