When to use this skill
Use this skill whenever the user wants to:
- Write or debug Detox E2E tests for React Native apps
- Configure builds, launch simulators and assertions; CI integration
How to use this skill
- Environment: Install Detox, configure .detoxrc; iOS requires Xcode and a simulator; Android requires the SDK and an emulator.
- Test cases: element(by.id), tap, typeText, expect; asynchronous waiting and synchronization.
- CI: build and test steps; Artifacts save logs and screenshots.
Best Practices
- Use testID for stable identification; avoid relying on text and time-consuming animations.
- Keep build and device configurations consistent; retain artifacts on failure.
- Use environment variables for sensitive operations; parallelism and retry strategies.
Keywords
detox, React Native, E2E, end-to-end testing