Sample project in React Native to try out Detox E2E tests.
This app is built with Expo managed workflow using Expo SDK 41 🆕
- Install detox-cli as mentioned https://github.com/wix/detox/blob/master/docs/Introduction.GettingStarted.md#step-1-install-dependencies
- Install Expo Go client on your simulator by running
yarn downloadExpoApp
- Install project dependencies by running
yarn
- Start Expo Bundler by running
yarn ios
- Open new terminal window and run GUI tests by
yarn testGUI
Since Detox 18.0.0 there's some issue with Expo support. So till problem is resolved i stick to detox@17.14.3. and apply patch proposed in this post expo/detox-tools#1 (comment)
This project uses patch-package to append some code to detox-expo-helpers, it's done automatically after installing dependencies in step #3 ('How to run it?' section)