What problem does it solve? Writing consistent, maintainable unit tests is hard when test data is duplicated, mocks are inconsistent, and tests verify implementation details instead of behavior. This Skill provides proven Jest testing patterns that keep test suites DRY, behavior-focused, and aligned with the TDD red-green-refactor cycle. ## Core Features & Use Cases - Factory Functions: Create reusable getMockX(overrides) factories for component props and data models with sensible defaults and partial overrides. - Mocking Strategies: Mock entire modules, GraphQL hooks, and utilities with jest.mock factory functions and jest.requireMock access patterns. - TDD Workflow: Follow the red-green-refactor cycle with structured describe blocks covering rendering, user interactions, and edge cases. - Use Case: When adding a new React component, generate a test file with a props factory, a custom render wrapper with theme providers, and behavior-focused assertions for loading, error, and interaction states. ## Quick Start Write Jest unit tests for my React component using factory functions, a custom render wrapper, and behavior-focused assertions.