friederbluemle / react-native-testing

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:TypeScript 74.3%Language:Ruby 7.8%Language:JavaScript 7.5%Language:Kotlin 4.7%Language:Objective-C 4.2%Language:Objective-C++ 1.5%