Skip to content

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

Notifications You must be signed in to change notification settings

MateusAndrade/react-native-testing

 
 

Repository files navigation

banner

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

Covered Examples 🎞

Tools in use 🛠️

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 74.0%
  • Java 12.1%
  • JavaScript 4.4%
  • Ruby 3.8%
  • Objective-C 3.8%
  • Objective-C++ 1.9%