React Native Testing

This app is a simple example of how to use/test React-Query for data fetching and Zustand for state management in a React Native application.

It provides comprehensive and detailed examples to aid in the understanding of the testing process. The app uses following core packages:

  • react (18.2.0)
  • react-native (0.71.2, new arch.)
  • jest (29.4.1)
  • ts-jest (29.0.5)
  • @testing-library/react-hooks (8.0.1)
  • @testing-library/react-native (11.5.1)
  • msw (1.0.0)

? Running locally

Install dependencies

  yarn install

Start the emulator for ios.

 cd ios && pod install && yarn run ios

or for android

  yarn run android

? Running tests

  yarn test

? Overview of product list screen