Skip to content
Projects

vanGalilea/react-native-testing

View on GitHub

vanGalilea/react-native-testing has 659 GitHub stars and 79 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 23:44 UTC. Last push 2025-03-07.

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Update delayed
in 15 days
Update delayed
in 1 month
Update delayed

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

About

This is how you should test your react-native components with Jest and React Native Testing Library

Web & Apps

README.md

Original

banner

No More Hacks and Headaches <> Learn How to Test Your Components Before Your Users Will

Quality Gate Status Coverage Unit Testing E2E Testing

Covered Examples 🎞

Tools in use 🛠️

Setup and requirements 📋

Getting Started 🚀

  • Clone the repo git clone [email protected]:vanGalilea/react-native-testing.git
  • Run yarn to install dependencies
  • Explore RN CLI app and/or Expo app's tests and source code that are relevant to your use case.

RN CLI application

How to run the tests 🏃‍♀️

  • Run cd apps/rn-cli-app to navigate to the app folder
  • Run yarn test:unit to run the unit tests
  • Run yarn test:unit:dev to run the unit tests in dev/watch mode
  • Run yarn test:unit:coverage to run the tests and generate a coverage report

Make sure you have built and run the app in dev mode before running the e2e tests.

  • Run yarn test:e2e to run the e2e tests
  • Run yarn test:e2e:dev to run the e2e tests in dev/watch mode
  • Run yarn test:e2e:record to run the e2e tests and record a video of the tests

How to run the app 📱

  • Run cd apps/rn-cli-app to navigate to the app folder
  • Run npx pod-install to install iOS dependencies
  • Run yarn start to start the metro bundler
  • Click i to run the app on iOS simulator or a to run it on Android emulator

Expo application

How to run the tests 🏃‍♀️

  • Run cd apps/rn-expo-app to navigate to the app folder
  • Run yarn test:unit to run the unit tests

How to run the app 📱

  • Run cd apps/rn-expo-app to navigate to the app folder
  • Run yarn start to start the metro bundler
  • Click i to run the app on iOS simulator or a to run it on Android emulator

Inspiration, resources and further reading 📚

Impression of the project 📸

https://github.com/vanGalilea/react-native-testing/assets/25864161/cdb6cdc7-7b28-4ecd-819f-52dd3c3d76c8