detox
Installation
SKILL.md
Detox
Detox is designed for React Native. Unlike Appium (Black-box), Detox works "Gray-box" by running inside your app, monitoring the main thread. It knows when the app is busy/idle, eliminating flaky waits.
When to Use
- Gray-Box Mobile E2E Automation: Testing React Native mobile apps with internal synchronization on iOS and Android.
- Flake-Free Mobile Testing: Eliminating manual
sleep()calls by synchronizing automatically with React Native's bridge and event queue. - High-Velocity Release Validation: Validating critical user journeys on simulators and emulators in mobile CI/CD pipelines.
- Fast Local Feedback: Running automated mobile UI tests alongside the React Native packager.
Quick Start
describe("Example", () => {
beforeAll(async () => {
await device.launchApp();
});