testing-patterns - Jest testing patterns, factory functions, and TDD workflow
Provides Jest testing patterns, factory functions, mocking strategies, and TDD workflows for unit testing.
Tags
Updated: 2026-09-16Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write unit tests using TDD
- Create component and data factories
- Mock modules and GraphQL hooks
- Simulate component user interactions
- Run tests and coverage reports
Inputs
- React Native components
- Component props and data models
- Jest test files
Outputs
- Unit test files
- Test factory functions
- Mock implementations
- Test coverage reports
Requirements
- Jest
- React Native Testing Library
- Node.js and npm
