/react-native-testing

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

Primary LanguageTypeScriptMIT LicenseMIT

banner

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

Quality Gate Status Coverage Unit Testing

Covered Examples ๐ŸŽž

Tools in use ๐Ÿ› ๏ธ

Setup and requirements ๐Ÿ“‹

How to run the tests ๐Ÿƒโ€โ™€๏ธ

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

  • 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 tests for react native web project

Inspiration, resources and further reading ๐Ÿ“š

Impression of the the project ๐Ÿ“ธ

maestro-record.mp4