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

Documentation for jest.setup.js #1719

Open
misbell opened this issue Dec 20, 2024 · 1 comment
Open

Documentation for jest.setup.js #1719

misbell opened this issue Dec 20, 2024 · 1 comment

Comments

@misbell
Copy link

misbell commented Dec 20, 2024

Describe the bug

you're referring to the wrong library!!!

Image

Wasted a whole DAY on this. jest-native here, not react-native. PLEASE FIX THIS.

This is hard enough without adding the documentation written by the authors misleading you!

@mdjastrzebski
Copy link
Member

@misbell not sure what's your point here. The provided information is correct and refers to the current version of RNTL.

  • @testing-library/jest-native is the old solution and is now deprecated and not officially supported by RNTL.
  • @testing-library/reatct-native/extend-expect import is the recommended one and officially supported way of adding Jest matchers since RNTL v12.4. If it does not work for you then you might be using older version of RNTL, in such case I would recommend to upgrade your RNTL version.

You can read more here: https://callstack.github.io/react-native-testing-library/docs/api/jest-matchers

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

No branches or pull requests

2 participants