Jest helps you write tests for JavaScript and TypeScript code. Good tests catch bugs early and keep your app working. This skill shows you how to name test files, organize tests with describe and it blocks, and write clear test names.
Mocking is a key part of testing. You can fake external services like APIs or databases so your tests run fast and reliably. Use jest.mock and jest.spyOn to control what your code does during tests. Always reset mocks between tests to avoid surprises.
For React apps, prefer React Testing Library over other tools. Focus on how users interact with your components. Test accessibility by querying elements with roles and labels. Use userEvent for realistic clicks and typing. Snapshot tests catch unexpected changes in UI or data.
Global
mkdir -p ~/.claude/skills/javascript-typescript-jestProject
mkdir -p .claude/skills/javascript-typescript-jestSource Repository
Grill Memattpocock/skills
Stress-test your plan with relentless questions until we both understand
Tddmattpocock/skills
Write one test at a time then code to make it pass
Test Driven Developmentobra/superpowers
Write a failing test first then code just enough to pass
Qamattpocock/skills
Turn bug reports into GitHub issues through natural conversation without technical fuss
Migrate To Shoehornmattpocock/skills
Replace unsafe as assertions with type-safe partial test data easily
Webapp Testinganthropics/skills
Test your local web apps quickly with Playwright automation and screenshots
Playwright Best Practicescurrents-dev/playwright-best-practices-skill
Master Playwright testing with best practices for reliable and fast tests
Google Agents Cli Evalgoogle/agents-cli
Run evaluations on your AI agent, find failures, and improve its quality step by step