https://github.com/expo/detox-expo-helpers
https://github.com/expo/detox-expo-helpers
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/expo/detox-expo-helpers
- Owner: expo
- Created: 2017-09-02T20:35:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-15T03:48:27.000Z (over 4 years ago)
- Last Synced: 2025-06-30T02:15:08.695Z (4 months ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 44
- Watchers: 2
- Forks: 33
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# detox-expo-helpers
Utilities for using [detox](http://github.com/wix/detox) in your Expo/Create React Native App apps.
## Use it
### Install it
```
yarn add detox-expo-helpers -D
# or
npm i detox-expo-helpers --save-dev
```Also, declare `expo-detox-hooks` in your project's `package.json`.
### Set up detox on your project
Follow the steps in the detox [Getting Started](https://github.com/wix/detox/blob/master/docs/Introduction.GettingStarted.md) guide.
### Download the Expo app to some directory in your project and configure in package.json
You can download the Expo app from the [Expo Tools page](https://expo.io/tools). See an [example package.json configuration](https://github.com/expo/with-detox-tests/blob/033020b165452d641f512a9b1a8a291632ce8e8f/package.json#L21-L29)
### Use detox-expo-helpers in your app
All you really need to use is `reloadApp`, like so: https://github.com/expo/with-detox-tests/blob/master/e2e/firstTest.spec.js#L1-L6
## Example app
Try out an example app with this already configured at https://github.com/expo/with-detox-tests