SuperAPI AI Directory

detox

Testing & quality

View repository

Updated 10-15 21:48

About this skill

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

  1. Environment: Install Detox, configure .detoxrc; iOS requires Xcode and a simulator; Android requires the SDK and an emulator.
  2. Test cases: element(by.id), tap, typeText, expect; asynchronous waiting and synchronization.
  3. 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