Files
callstack__react-native-tes…/examples/basic
Maciej Jastrzebski 83716c233b Merge branch 'main' into v13
# Conflicts:
#	examples/basic/jest-setup.ts
#	examples/basic/package.json
#	examples/basic/yarn.lock
#	examples/cookbook/package.json
#	examples/cookbook/yarn.lock
#	package.json
2024-11-27 10:24:18 +01:00
..
2022-07-28 10:24:28 +02:00
2023-11-13 14:16:47 +01:00
2022-07-28 10:24:28 +02:00
2024-11-27 10:24:18 +01:00
2024-11-27 10:24:18 +01:00
2022-11-08 21:36:36 +01:00
2024-11-27 10:24:18 +01:00

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, *ByPlaceholderText over byTestId

You also use this repository as a reference when having issues in your RNTL configuration, as it contains the recommended Jest setup.