Agent skill
jest
Jest testing patterns and best practices. Unit, integration, and snapshot testing for JavaScript/TypeScript. Trigger: When writing or running tests with Jest.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/jest-joabgonzalez-ai-agents-framework
SKILL.md
Jest Skill
When to Use
- Unit, integration, or snapshot testing
- Testing JS/TS codebases
- Mocking dependencies
Critical Patterns
- Use describe/it for structure
- Use beforeEach/afterEach for setup/teardown
- Prefer jest.mock for isolation
Decision Tree
- Unit or integration? → Structure tests accordingly
- Need mocks? → Use jest.mock
- Async code? → Use async/await in tests
Edge Cases
- Mocking ES modules
- Flaky async tests
- Snapshot drift
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?