myncepu / with-detox-tests

Updated repo to work with Expo and Detox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

with-detox-tests

An updated fork of the oficial expo/with-detox-tests. Upgraded to the latest Expo SDK (v32) with Jest as the test runner.

This working version was made possible thanks to Josh Justice tutorial. https://blog.expo.io/testing-expo-apps-with-detox-and-react-native-testing-library-7fbdbb82ac87

Found a couple of bottlenecks following the tutorial setup so I ended up catching up from the oficial Expo Docs but their repo was outdated.

Anyway hope this repo helps you catch up if you found yourself with similar issues running Expo with Detox or following the tutorial.


Demonstrates integration of the Detox gray box end-to-end testing library with Expo. Uses detox 12.1.1+, detox-expo-helpers and expo-detox-hooks.

Try it out

  1. Install dependencies (only follow Step 1 from this guide for now, the rest is already done in this project)
  2. Run ./setup.sh. This should grab the latest Expo app and place it inside bin/
  3. Start the packager: expo start (if you don't have expo installed, yarn global add expo).
  4. yarn e2e

About

Updated repo to work with Expo and Detox


Languages

Language:JavaScript 86.8%Language:Shell 13.2%