test-patterns

Installation
SKILL.md

Testing Patterns for React Native

Core Principles

Test in isolation with proper mocking. Use MockedProvider for GraphQL, create isolated query clients for TanStack Query, and mock native modules globally to prevent test failures.

Why: Isolated tests are fast, reliable, and don't depend on external services or native platform code.

When to Use This Skill

Use these patterns when testing:

  • React Native components with server data
  • GraphQL operations with Apollo Client
  • TanStack Query hooks and mutations
  • Components with loading and error states
  • Async operations and state updates
  • Native module integrations
Installs
1
GitHub Stars
3
First Seen
Apr 22, 2026