Skip to content
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

RangeError: Invalid string length #316

Open
boksandaniel opened this issue Feb 19, 2025 · 0 comments
Open

RangeError: Invalid string length #316

boksandaniel opened this issue Feb 19, 2025 · 0 comments

Comments

@boksandaniel
Copy link

Since upgrading the RN from 0.75.4 to 0.77.0 I'm encountering snapshots fails when I run these kind of tests.

it('ExampleTest - default', () => {
const tree = render(



).toJSON();

expect(tree).toMatchSnapshot();

});

  44 |     ).toJSON();
  45 |
> 46 |     expect(tree).toMatchSnapshot();
     |                  ^
  47 |   });

at printObjectProperties (node_modules/pretty-format/build/collections.js:170:47)
at key (node_modules/pretty-format/build/index.js:386:38)
at AsymmetricMatcher (node_modules/pretty-format/build/index.js:469:3)
at printObjectProperties (node_modules/pretty-format/build/collections.js:169:21)
at key (node_modules/pretty-format/build/index.js:386:38)
at AsymmetricMatcher (node_modules/pretty-format/build/index.js:469:3)
at printObjectProperties (node_modules/pretty-format/build/collections.js:169:21)
at key (node_modules/pretty-format/build/index.js:386:38)
at AsymmetricMatcher (node_modules/pretty-format/build/index.js:469:3)
at printObjectProperties (node_modules/pretty-format/build/collections.js:169:21)
at key (node_modules/pretty-format/build/index.js:386:38)
at AsymmetricMatcher (node_modules/pretty-format/build/index.js:469:3)
at printObjectProperties (node_modules/pretty-format/build/collections.js:169:21)
at key (node_modules/pretty-format/build/index.js:386:38)

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

No branches or pull requests

1 participant