testing-react

Installation
SKILL.md

Test Classification

Type Tool Target File pattern
Unit Vitest Pure functions, utilities, services Co-located *.test.ts
Component Vitest + RTL React components Co-located *.test.tsx
Hook Vitest + RTL Custom hooks Co-located *.test.ts
E2E Playwright User flows, critical paths Separate e2e/ directory

Default to component tests for React components. Unit tests for pure functions and service classes. See e2e-testing for Playwright patterns.

Setup

Vitest config: environment: 'jsdom', globals: true, setupFiles pointing to a file that imports @testing-library/jest-dom/vitest. Use @vitejs/plugin-react and mirror path aliases from tsconfig.json.

Critical Rules

Installs
2
GitHub Stars
20
First Seen
Feb 22, 2026
testing-react — iliaal/ai-skills