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
Setup empty project with listed dependencies and render example (provided below) using output toJSON method from the render(). To avoid RangeError: Invalid string length error during testing please setup snapshotFormat: { maxDepth: 10 } in jest.config.js, probably this is also an issue.
@qdanik This is an issue with pretty-format vs React 19. Take a look at this article. Basically you need to set version resolution react-is package to match your react version (19.0.0).
Reacted by Evan Walsh, Daniil Yankouski, Jens Kuhr Hansen and roni-castro-shipt
Reacted by Evan Walsh, Daniil Yankouski and roni-castro-shipt
Activity
mdjastrzebski commentedon Apr 29, 2025
@qdanik This is an issue with
pretty-formatvs React 19. Take a look at this article. Basically you need to set version resolutionreact-ispackage to match yourreactversion (19.0.0).qdanik commentedon Apr 30, 2025
Thanks, @mdjastrzebski. The article provided exactly what I needed.