Detox Mobile Test
Helps with mobile development, testing as part of building frontend UIs and user experiences workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add detox-mobile-test npx -- -y @trustedskills/detox-mobile-test
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"detox-mobile-test": {
"command": "npx",
"args": [
"-y",
"@trustedskills/detox-mobile-test"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides expertise in end-to-end (E2E) testing of React Native applications using Detox. It automates synchronization between your application and the React Native bridge, handling animations and network requests for reliable test execution. The skill leverages established testing principles like AAA pattern and Page Object design to create maintainable and robust mobile UI tests.
When to use it
- Automating regression testing of React Native applications before releases.
- Ensuring consistent behavior across different iOS simulators and Android emulators.
- Creating a reliable test suite for complex user flows within your app.
- Verifying the stability and performance of UI elements, especially those involving animations or network requests.
- Setting up initial Detox configurations for new React Native projects.
Key capabilities
- Automatic synchronization with the React Native bridge.
- Handles animation and network request synchronization during tests.
- Supports
waitFor()for explicit waiting conditions. - Promotes use of
toBeVisible()overtoExist()for increased test stability. - Enforces AAA (Arrange, Act, Assert) testing pattern.
- Utilizes Page Object design pattern for complex UI elements.
- Configuration via
.detoxrc.jsonfile to define apps, devices and configurations. - Integration with Jest testing framework.
Example prompts
- "Run the Detox tests for the iOS debug build on the iPhone 14 simulator."
- "Configure Detox to use the Pixel_4 API_30 Android emulator."
- "Generate a basic test structure for logging in to my React Native app using Detox."
Tips & gotchas
- Requires familiarity with React Native and Jest.
- The
.detoxrc.jsonfile is crucial for configuring your tests; ensure it's correctly set up for your project. - Pay attention to test timeouts, especially when dealing with slower devices or network conditions.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.