Description
Describe the Feature
Current set of jest matchers is limited only to the base ones provided by jest. This makes simple queries like checking the text content of found element rather non-intuitive be directly working with its children
prop.
The @testing-library/jest-native adds a number of useful React Native specific queries like: toHaveTextContent, toHaveStyle, toBeEnabled/Disabled, etc.
Such addition is motivated by providing the best potential developer experience for RNTL users.
As a reference point, the original React Testing Library includes @testing-library/jest-dom dev dependency.
Possible Implementations
Add @testing-library/jest-native to dev dependencies.
Alternatively, we can document existence of this related package and provide a suggestion to use it with RNTL as a suggested practice.
Related Issues
None.