Detox

Tests React Native applications E2E with Detox, gray box testing, and device synchronization.

ssrjkk Updated 2 repo stars

File contents

Detox

Gray-box E2E testing for React Native apps.

Quick Start

describe('Login', () => {
  beforeAll(async () => { await device.launchApp() })
  it('should login successfully', async () => {
    await element(by.id('email-input')).typeText('user@example.com')
    await element(by.id('password-input')).typeText('password123')
    await element(by.id('login-button')).tap()
    await expect(element(by.id('welcome-screen'))).toBeVisible()
  })
})

When to Use

  • React Native E2E testing; CI/CD mobile testing; Cross-platform tests

Validation

  1. Detox builds the app correctly; 2. Tests run on simulator; 3. Element matching works

ssrjkk/claude-skills/tree/main/.claude/skills/qa/detox commit 09b79a6355

Frequently asked questions

npx skillmds@latest add ssrjkk/detox