What problem does it solve? Writing consistent, maintainable unit tests is hard: test data gets duplicated, mocks are misused, and teams skip the TDD red-green-refactor discipline. This Skill provides proven Jest testing patterns, factory functions, and mocking strategies so tests stay DRY, behavior-focused, and reliable. ## Core Features & Use Cases - Factory Pattern: Create getMockX(overrides) functions for props and data with sensible defaults, keeping tests DRY and consistent. - Mocking Strategies: Patterns for mocking modules, GraphQL hooks, and functions with jest.mock and jest.requireMock. - TDD RED Checkpoint: Enforces writing a failing test first and verifying it fails cleanly before any implementation. - Use Case: When building a React Native component, use the custom render utility with theme providers, generate props via a factory, and structure tests with describe blocks for rendering, interactions, and edge cases. ## Quick Start Ask the agent to write Jest unit tests for your component using factory functions and the TDD red-green-refactor workflow.