detox
Installation
SKILL.md
When to use this skill
Use this skill whenever the user wants to:
- Write end-to-end tests for React Native applications using Detox
- Configure Detox for iOS simulators and Android emulators
- Use element matchers, actions, and assertions in Detox tests
- Integrate Detox tests into CI/CD pipelines
- Debug synchronization and timing issues in mobile tests
How to use this skill
Workflow
- Set up the environment: install Detox CLI, configure
.detoxrc.js, ensure Xcode/Android SDK are ready - Write test cases: use
element(by.id(...)),tap(),typeText(), andexpect() - Build and test:
detox buildthendetox test - Run in CI: save artifacts (logs, screenshots) on failure