setup-detox-jest.mo
Owner: Alban Depretz
Prerequisites
Steps
Step 1: Install dependencies (~5mins)
1. Install appleSimUtils
2. Install Detox command line tools (detox-cli)
Step 2: Add Detox to your project (~10mins)
1. Add Detox to your project
2. Add Detox config to package.json
Step 3: Write your 1st test (~20mins)
1. Configure Detox to run on Jest
2. Write your test
Step 4: Run tests (~10mins)
Step 5: Add compatibility with eslint (Optional) (~10mins)
1. Add eslint plugin eslint-plugin-detox
Step 6: Automate the execution of E2E integration tests on Bitrise (Optional) (~30 mins)
Troubleshooting
If an element of the UI cannot be found even if you gave it a testID.
If an element of the UI cannot be found after a transition.
If your tests hang you might have synchronisation issues.
Example application
Last updated