AI AGENT ADDONS

Javascript Typescript Jest

github/awesome-copilot
Testing & QA
11,817installs

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.

Add Javascript Typescript Jest skill to your workflow

Global

mkdir -p ~/.claude/skills/javascript-typescript-jest

Project

mkdir -p .claude/skills/javascript-typescript-jest

Source Repository

Stars
35,856
Forks
4,431
Watchers
35,856
License
MIT
Last Push
1 month ago
Created
1 year ago