Jest Mocking Patterns
From the author
Teaches the agent the right way to mock in Jest — jest.fn, mockImplementation, mockResolvedValue, jest.mock factories, spyOn with restore, and isolating modules like axios.
Install
npx skills add PramodDutta/qaskills --skill 'Jest Mocking Patterns' -a claude-code
Installs to .claude/skills/Jest-Mocking-Patterns/ · Each command fetches the skill straight from GitHub with the open skills CLI.
Byte-identical to the scanned commit, with the repository’s licence and a SOURCE.txt.
Want your agent to suggest skills while you type? See how to use skills from your IDE.
Safety checks on SKILL.md
No warnings.
Why 85
aiqbench computes the trust score from public signals. It is not a security audit, so read a skill before you install it.
Similar skills
Closest to this one by what they do and when they are used.
- jesta5c-ai/babysitterJest configuration, mocking strategies, snapshot testing, and coverage.Testing★ 1.9K
- jest-generatorsecondsky/claude-skillsGenerate Jest unit tests for JavaScript/TypeScript with mocking, coverage. Use for JS/TS modules, React components, test generation, or encountering missing coverage, improper mocking, test structure errors.Testing★ 236
- Jest Unit TestingPramodDutta/qaskillsUnit testing skill using Jest for TypeScript and JavaScript, covering mocking, spies, snapshots, coverage, async testing, and custom matchers.Testing★ 240
- javascript-testing-patternswshobson/agentsImplement comprehensive testing strategies using Jest, Vitest, and Testing Library for unit tests, integration tests, and end-to-end testing with mocking, fixtures, and test-driven development. Use when writing JavaScript/TypeScript tests, setting up test infrastructure, or implementing TDD/BDD workflows.Testing★ 41.6K
- bun-jest-migrationsecondsky/claude-skillsUse when migrating from Jest to Bun's test runner, import compatibility, mocks, and config.Testing★ 236
- NestJS Testing PatternsPramodDutta/qaskillsNestJS application testing with @nestjs/testing, dependency injection mocking, e2e testing with supertest, guard testing, and pipe validation testing.Testing★ 240
Ratings & reviews
—
no reviews
Tried this skill? Rate it to help others. Sign in
Discussion
Join the discussion. Sign in