mocking-strategies
Installation
SKILL.md
Mocking Strategies for React Native Testing
Documentation
This skill has comprehensive documentation:
- Production Examples - Real-world code examples from the codebase
- API Reference - Complete API documentation with official links
- Implementation Patterns - Best practices and anti-patterns
Core Principles
Mock external dependencies only, test internal logic. Replace network calls, navigation, native modules, and third-party libraries with controlled test doubles. Never mock internal utilities or helpers.
Why: Proper mocking enables fast, isolated, reliable tests that focus on component logic without external dependencies. Test behavior, not implementation.