testing-patterns

Installation
SKILL.md

Testing Patterns

TypeScript / JavaScript Testing (Vitest)

File Conventions

  • Colocated tests: src/foo.test.ts next to src/foo.ts (primary pattern)
  • E2E tests: *.e2e.test.ts in test/ directory or colocated
  • Live tests: *.live.test.ts for tests requiring real API keys
  • Setup file: test/setup.ts for global beforeEach/afterEach hooks
  • Config layering: base vitest.config.ts extended by vitest.unit.config.ts, vitest.e2e.config.ts, vitest.live.config.ts

Test Structure

import { describe, expect, it, vi } from "vitest";
Installs
3
GitHub Stars
4
First Seen
Jun 12, 2026
testing-patterns — 0xmassi/claude-skills