testing
Installation
SKILL.md
Testing: Vitest + Playwright
Test Strategy Overview
| Layer | Tool | Scope | Location |
|---|---|---|---|
| Unit | Vitest | Pure functions, composables, business logic | Co-located with source (*.test.ts) |
| Integration | Vitest + Hono testClient | API endpoints, middleware chains | apps/api/src/**/*.test.ts |
| E2E | Playwright | Full user flows through the browser | e2e/ at project root |
Vitest
Configuration
// vitest.config.ts (or in vite.config.ts)
import { defineConfig } from 'vitest/config'
export default defineConfig({
Related skills