jest-generator
Installation
SKILL.md
Jest Generator Skill
Purpose
This skill generates Jest-based unit tests for JavaScript and TypeScript code, following Jest conventions, best practices, and project standards. It creates comprehensive test suites with proper mocking, describe blocks, and code organization.
When to Use
- Generate Jest tests for JavaScript/TypeScript modules
- Create test files for React components
- Add missing test coverage to existing JS/TS code
- Need Jest-specific patterns (mocks, spies, snapshots)
Test File Naming Convention
Source to Test Mapping:
- Source:
src/components/Feature.tsx - Test:
src/components/Feature.test.tsx - Pattern:
<source_filename>.test.tsor<source_filename>.test.js