mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
08e4d022b3
* chore: upgrade example/basic deps * chore: update some deps * chore: upgrade other deps * chore: fix lint * chore: yarn upgrade (partial) * chore: yarn upgrade (partial 2) * chore: yarn upgrade (partial) * chore: yarn upgrade (partial) * chore: yarn upgrade (partial) * chore: yarn upgrade react-native * chore: upgrade rest (ex react-test-renderer)
Basic RNTL setup
This example is shows a basic modern React Native Testing Library setup in a template Expo app.
The app and related tests written in TypeScript, and it uses recommended practices like:
- testing large pieces of application instead of small components
- using
screen-based queries - using recommended query types, e.g.
*ByText,*ByLabelText,*ByPlaceholderTextoverbyTestId
You also use this repository as a reference when having issues in your RNTL configuration, as it contains the recommended Jest setup.