| name | app-testing |
| description | Plan and implement React Native tests with unit tests, React Native Testing Library, Maestro flows, and native capability mocks. |
App Testing
Use this skill when adding or repairing tests for React Native screens, hooks, stores, services, navigation, or E2E flows.
Required Context
- Read
rules/mobile-testing.md.
- For navigation tests, also read
specs/navigation.md.
Workflow
- Put pure logic under unit tests first.
- Test components through visible text and accessibility labels.
- Mock network, storage, permissions, time, and native modules.
- Add Maestro E2E for the core user path.
- Run project scripts and record any manual device checks that remain.
Checks
- Loading, empty, error, success, disabled states are covered.
- Permission-denied paths are covered.
- Tests do not hit production services.
- E2E flows are stable and avoid arbitrary sleeps when possible.