javascript-testing-patterns

Comprehensive testing strategies for JavaScript/TypeScript using Jest, Vitest, and Testing Library.

wshobson ↓ 17k
Claude Code
View source ↗

What it does

  • Setting up test infrastructure for new projects
  • Writing unit tests for functions and classes
  • Creating integration tests for APIs and services
  • Implementing end-to-end tests for user flows
  • Mocking external dependencies and APIs
  • Testing React, Vue, or other frontend components
  • Implementing test-driven development (TDD)

Requirements & configuration

Configuration: INFOERROR

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

Comprehensive testing strategies for JavaScript/TypeScript using Jest, Vitest, and Testing Library.

Source

Repository: https://github.com/wshobson/agents

javascript-testing-patterns FAQ

What does the javascript-testing-patterns skill do?

Implement 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. Setting up test infrastructure for new projects Writing unit tests for functions and classes

How do I install javascript-testing-patterns?

Run: npx -y skills add https://github.com/wshobson/agents --skill javascript-testing-patterns --agent claude-code — the source lives at github.com/wshobson/agents.

Maintain javascript-testing-patterns?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

javascript-testing-patterns on getagentictools
[![javascript-testing-patterns on getagentictools](https://getagentictools.com/badge/skills/wshobson-agents-javascript-testing-patterns.svg)](https://getagentictools.com/skills/wshobson-agents-javascript-testing-patterns?ref=badge)
npx agentictools info skills/wshobson-agents-javascript-testing-patterns

The second line is the CLI lookup for this page — handy in READMEs and docs.