Skip to content

fraktio/react-native-testing-in-2020

Repository files navigation

React Native ja modernit testausmenetelmät 2020

Prerequisites

Running the project

  • 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

Running unit tests

yarn test

Running End to end tests

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

Additional stuff

In src/DetailsScreen.tsx component there is use example of data validation using io-ts.