Skip to content

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

License

Notifications You must be signed in to change notification settings

vanGalilea/react-native-testing

Repository files navigation

banner

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

In this repo you'll find several examples that will cover:

How to run the tests 🏃‍♀️

  • Clone the repo
  • Run yarn to install dependencies
  • Run yarn test to run the tests
  • Run yarn test:coverage to run the tests and generate a coverage report

How to run the app 📱

  • Clone the repo
  • Run yarn to install dependencies
  • 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

Ideas and future improvements 🚀

  • 📱 Add E2E tests with Maestro
  • ⚛️ Add tests for react native web project

Inspiration, resources and further reading 📚

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published