javascript-typescript-jest
Jest testing best practices for JavaScript and TypeScript projects with mocking, async handling, and React patterns.
What it does
- Name test files with .test.ts or .test.js suffix
- Place test files next to the code they test or in a dedicated tests directory
- Use descriptive test names that explain the expected behavior
- Use nested describe blocks to organize related tests
- Follow the pattern: describe('Component/Function/Class', () => { it('should do something', () => {}) })
- Mock external dependencies (APIs, databases, etc.) to isolate your tests
- Use jest.mock() for module-level mocks
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Jest testing best practices for JavaScript and TypeScript projects with mocking, async handling, and React patterns.
Source
Repository: https://github.com/github/awesome-copilot
javascript-typescript-jest FAQ
What does the javascript-typescript-jest skill do?
Best practices for writing JavaScript/TypeScript tests using Jest, including mocking strategies, test structure, and common patterns. Name test files with .test.ts or .test.js suffix Place test files next to the code they test or in a dedicated tests directory
How do I install javascript-typescript-jest?
Run: npx -y skills add https://github.com/github/awesome-copilot --skill javascript-typescript-jest --agent claude-code — the source lives at github.com/github/awesome-copilot.
Maintain javascript-typescript-jest?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/github-awesome-copilot-javascript-typescript-jest?ref=badge) npx agentictools info skills/github-awesome-copilot-javascript-typescript-jest The second line is the CLI lookup for this page — handy in READMEs and docs.