Agent skill · software engineering · aiskillstore

mobile-testing

Write and run tests for React Native apps using Jest and React Native Testing Library. Use when creating tests, debugging failures, or setting up test infrastructure.

Why this skill is useful

Provides specific Jest and React Native Testing Library commands and patterns that enhance testing capabilities for mobile applications.

What it needs

Requires npm installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Mobile Testing Testing guide for React Native applications. When to Use Writing unit tests for components or utilities Creating integration tests for features Setting up test infrastructure Debugging test failures Improving test coverage Test Setup Component Test Template Hook Test Template Utility Test Template Mocking Patterns Mock External Module Mock Database Mock Navigation Running Tests Best Practices 1. Test Behavior, Not Implementation: Test what users see and do 2. Use testID for Selection: More reliable than text matching 3. Mock External Dependencies: Keep tests isolated and fast 4. Test Edge Cases: Empty states, errors, loading states 5. Keep Tests Simple: One assertion per test when possible 6. Clean Up: Use beforeEach/afterEach for setup/teardown Common Patterns Async Testing Testing Forms Testing Lists Troubleshooting Tests timing out: Increase timeout or check for unresolved promises Can't find element: Use screen.debug() to see rendered output Mock not working: Ensure mock is before import Async issues: Use waitFor or findBy queries Resources Jest Docs React Native Testing Library

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/mobile-testing

View the source on GitHub

Browse the @skills marketplace