Test mobile apps: unit tests with Jest, component tests with React Native Testing Library, E2E tests with Detox or Maestro, and visual regression testing.
When to use this skill
- Writing E2E tests for mobile
- Setting up Detox
- Testing React Native components
Core concepts
This skill provides guidance on mobile testing best practices, patterns, and common pitfalls. It is designed to be loaded on demand when a relevant task is detected.
Installation
curl -LO https://opencode-skills.example/downloads/mobile/mobile-testing.zip
unzip mobile-testing.zip -d ~/.config/opencode/skills/
Restart OpenCode — the skill loads automatically.
When it triggers
- writing E2E tests for mobile
- setting up Detox
- testing React Native components