testing-setup
Installation
SKILL.md
Set up testing infrastructure: $ARGUMENTS
$ARGUMENTS can include:
- "vitest" — unit/integration only (skip Playwright)
- "playwright" — e2e only (skip Vitest)
- "full" — both (default)
- "with-db" — include database test helpers (test transactions, seed/teardown)
- Framework hint: "nextjs" or "vite" (auto-detected if omitted)
- Empty — full setup, auto-detect framework
Before Starting
- Read
package.jsonto detect framework and see existing test config - Read
tsconfig.jsonto understand path aliases - Check if
vitest.config.tsorplaywright.config.tsalready exists - Read
src/lib/database/schema.tsto understand table structure (for fixtures) - Check
src/lib/env.tsfor env validation patterns