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.
Describe the bug
Incorrect snapshot rendering of props components.
P.S. it can be an issue of react-test-renderer
Code Example:
Expected behavior
I want to see like a structured JSX component in snapshot output.
Example:
Steps to Reproduce
Setup empty project with listed dependencies and render example (provided below) using output
toJSON
method from therender()
. To avoidRangeError: Invalid string length
error during testing please setupsnapshotFormat: { maxDepth: 10 }
in jest.config.js, probably this is also an issue.Screenshots
Versions
npmPackages:
@testing-library/react-native: 13.1.1 => 13.1.1
jest: 29.7.0 => 29.7.0
react: 19.0.0 => 19.0.0
react-native: 0.78.2 => 0.78.2
react-test-renderer: 19.0.0 => 19.0.0
The text was updated successfully, but these errors were encountered: