device-testing
React Native testing with Jest, Detox E2E, and React Native Testing Library. Use for mobile test strategies or native module mocking.
Why use this skill?
Master React Native testing with Jest, Detox, and RNTL. Get expert guidance on mobile unit tests, integration strategies, and E2E automation.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anton-abyzov/sw-device-testingWhat This Skill Does
The device-testing skill serves as your dedicated OpenClaw expert for React Native quality assurance. It provides deep architectural guidance on mobile testing, helping you structure your test suites according to the mobile testing pyramid: 70% unit tests, 20% integration tests, and 10% E2E tests. Whether you are struggling with complex native module mocking, setting up your first Detox E2E pipeline, or writing efficient React Native Testing Library components, this skill offers code-ready solutions. It covers the full lifecycle of testing from initial setup to running headless tests on simulators or real physical devices.
Installation
You can integrate this skill into your environment by running the following command in your terminal: clawhub install openclaw/skills/skills/anton-abyzov/sw-device-testing
Use Cases
- Refactoring Legacy Modules: Use the skill to generate comprehensive test suites for native modules that lack coverage.
- CI/CD Pipeline Setup: Get advice on configuring Detox for GitHub Actions or Bitrise to ensure your mobile apps remain bug-free after every commit.
- Component Isolation: Learn the best practices for mocking heavy dependencies like Firebase, React Navigation, or complex native APIs in your unit tests.
- E2E Strategy: Decide between Maestro or Detox based on your team's velocity and infrastructure requirements.
- Debugging Flaky Tests: Paste your failing test logs to have the agent analyze race conditions or timeout issues specific to asynchronous mobile operations.
Example Prompts
- "Create a unit test for my custom useAuth hook that mocks an asynchronous API call to a Firebase login endpoint."
- "My Detox E2E tests keep timing out on the login screen of my React Native app. Can you help me write a wait-for-element helper function to handle the splash screen animation?"
- "Compare Maestro and Detox for a high-performance React Native app. Which one is better for handling complex physical device interactions?"
Tips & Limitations
To get the most out of the device-testing skill, always provide the specific versions of React Native, Jest, and Detox you are currently using, as APIs have evolved significantly. Note that the agent provides code-based guidance but cannot execute the tests directly on your local device hardware. Ensure your environment has the necessary dependencies like XCode, Android Studio, and the required command-line tools installed for E2E testing to function. Always favor component tests over E2E tests to reduce build times and flakiness in your CI pipeline.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-anton-abyzov-sw-device-testing": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
network-engineer
Cloud network architect for VPC design, service mesh, zero-trust networking, load balancers, and CDN optimization. Use for network troubleshooting or connectivity issues.
jira-multi-project-mapper
Expert in mapping SpecWeave specs to multiple JIRA projects with intelligent project detection and cross-project coordination. Use when syncing to multiple JIRA projects (project-per-team, component-based), or managing bidirectional sync across team boundaries.
helm-chart-scaffolding
Design, organize, and manage Helm charts for templating and packaging Kubernetes applications with reusable configurations. Use when creating Helm charts, packaging Kubernetes applications, or implementing templated deployments.
performance-optimization
React Native performance with Hermes V1, FlashList, expo-image v2, concurrent rendering. Use for slow app, memory leaks, or FPS issues.
release-strategy-advisor
Release strategy advisor - detects brownfield patterns (tags, CI/CD, changelogs), recommends versioning strategy based on architecture. Creates release-strategy.md.