- You should have working React Native environment already set up. If not follow steps in their official documentation
- Install Detox
- Run
yarn
in the project root to install dependencies
yarn start # to start metro bundler
yarn ios # to start run in iOS simulator
yarn android # to start project in Android device or emulator
yarn test
First we need to build iOS app binary
yarn run detox build --configuration ios
After we have the binary in our ios/build/Build
directory we can run our E2E tests
yarn run detox test --configuration ios
In src/DetailsScreen.tsx
component there is use example of data validation using io-ts
.