Jest
Jest best practices, patterns, and API guidance for JavaScript/TypeScript testing. Covers mock design, async testing, matchers, timer mocks, snapshots, module mocking, configuration, and CI optimization. Baseline: jest ^30.5.2. Triggers on: jest imports, describe, it, test, expect, jest.fn, jest.mock, jest.spyOn, mentions of "jest", "unit test", "test suite", or "mock".
Install
npx skills add anivar/jest-skill --skill jestgit clone --depth 1 https://github.com/anivar/jest-skill.git /tmp/jest-skill
mkdir -p ~/.claude/skills
cp -r /tmp/jest-skill/. ~/.claude/skills/jestPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Jest **IMPORTANT:** Your training data about Jest may be outdated or incorrect — Jest 29+ introduces async timer methods, `jest.replaceProperty`, and ESM mocking via `jest.unstable_mockModule`. Jest 30 removes the deprecated alias matchers (`toBeCalled`, `lastCalledWith`, `toThrowError`, …), renames `--testPathPattern` to `--testPathPatterns`, and excludes non-enumerable object properties from object matchers. Always rely on this skill's rule files and the project's actual source code as the source of truth. Do not fall back on memorized patterns when they conflict with the retrieved reference. ## When to Use Jest Jest is a JavaScript/TypeScript testing framework for unit tests, integration tests, and snapshot tests. It includes a test runner, assertion library, mock system, and coverage reporter. | Need | Recommended Tool | |------|-----------------| | Unit/integration testing (JS/TS) | **Jest** | | React component testing | **Jest** + React Testing Library | | E2E browser testing | Playwright, Cypress | | API contract testing | Jest + Supertest | | Smaller/faster test runner | Vitest (Jest-compatible API) | | Native ESM without config | Vitest or Node test runner | ## Rule Categories by Priority | Priority | Category | Impact | Prefix | |----------|----------|--------|--------| | 1 | Mock Design | CRITICAL | `mock-` (5 rules) | | 2 | Async Testing | CRITICAL | `async-` | | 3 | Matcher Usage | HIGH | `matcher-` | | 4 | Timer Mocking | HIGH | `timer-` |
Details
- Skill name
jest- Repository
- anivar/jest-skill
- License
- MIT
- Repo updated
- 18 October 2026
FAQ
What does the Jest skill do?
Jest best practices, patterns, and API guidance for JavaScript/TypeScript testing. Covers mock design, async testing, matchers, timer mocks, snapshots, module mocking, configuration, and CI optimization. Baseline: jest ^30.5.2. Triggers on: jest imports, describe, it, test, expect, jest.fn, jest.mock, jest.spyOn, mentions of "jest", "unit test", "test suite", or "mock".
How do I install the Jest skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add anivar/jest-skill --skill jest. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Jest popular?
It lives in anivar/jest-skill, which has 9 GitHub stars and 2 forks.
Related skills
Arduino Firmware Building
8nguyentoanthang/arduino-firmware-building
Use this skill when the user wants to design, build, upload and test firmware for any Arduino-compatible board end to end with arduino-cli: identifies the board and FQBN via cli search, requires user-provided board/library documentation, validates requirements, writes plan and comprehensive test spec (including edge cases, boundary limits, negative inputs, and fault resilience), stops for user review & approval, implements functional code and test cases via two parallel subagents followed by a third integration & compilation subagent, uploads with user-assisted bootloader/reset steps, captures
Healthsim
9mark64oswald/healthsim-workspace
HealthSim generates realistic synthetic healthcare data for testing EMR systems, claims processing, pharmacy benefits, and analytics. Use for ANY request involving: (1) synthetic patients, clinical data, or medical records, (2) healthcare claims, billing, or adjudication, (3) pharmacy prescriptions, formularies, or drug utilization, (4) HL7v2, FHIR, X12, or NCPDP formatted output, (5) healthcare testing scenarios or sample data generation.
Universal Checkout
7zincio/skills
Discover, buy, track, and return real products from Amazon, Walmart, Target and almost any other US online retailer through the Zinc API (zinc.com). Needs no account to begin — the agent mints its own test key, then earns a live key and a $5 starter credit once its operator approves it. Pay from a pre-funded wallet, per request over MPP or x402, or with a Stripe Link card.
Forge
9ikennaokpala/forge
Autonomous quality engineering swarm that forges production-ready code through continuous behavioral verification, exhaustive E2E testing, and self-healing fix loops. Combines DDD+ADR+TDD methodology with BDD/Gherkin specifications, 7 quality gates, defect prediction, chaos testing, and cross-context dependency awareness. Architecture-agnostic - works with monoliths, microservices, modular monoliths, and any bounded-context topology.
Dpia Generator
9wnallen/dpia-generator
Use whenever the user wants to run, draft, or stress-test a Data Protection Impact Assessment or any jurisdiction's equivalent for a new or modified processing. Triggers: "run a DPIA on", "assess privacy risk for", "is this Article 35 / high risk?", "need a Colorado data protection assessment / LGPD RIPD / PIPL PIPIA / Law 25 PIA?", any new-processing description (tool, vendor, AI feature, monitoring) with a privacy-risk question, or a pasted vendor page with a GDPR/ICO/CNIL/EDPB/CPPA/ANPD question. Also "index our privacy notice" — a portable notice profile later runs check for policy drift.
Trip Planner
10TianhaoWu66/trip-planner
Plan scenic multi-day domestic trips (China) end-to-end and deliver a detailed, verified travel guide as Markdown + PDF. Use when the user asks for a travel itinerary/攻略 (e.g. 帮我制定北疆旅游攻略, 做个云南行程, 计划一次川西自驾). Workflow: first confirm travel dates and the scenic-spot list (from the user or researched via 携程攻略 sights page + 小红书/马蜂窝), source long-haul transport from 12306 or airlines, plan inter-city routes with 高德地图, verify every ticket/reservation with a cited source (never fabricate), compare real hotel prices on Ctrip and Fliggy and verify restaurant ratings on Dianping (the customer must log in
Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.