chore: Co-locate unit tests and update test conventions

- QA skill: unit tests placed next to source files (co-located)
  instead of src/__tests__/ directory
- CLAUDE.md: add test convention note and full test script reference

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
“alexvisualmakers”
2026-03-31 09:31:24 +02:00
parent 6f1f909bb0
commit ef85ee746f
2 changed files with 9 additions and 5 deletions

View File

@@ -47,14 +47,18 @@ All features tracked in `features/INDEX.md`. Every skill reads it at start and u
- **Single Responsibility:** One feature per spec file
- **shadcn/ui first:** NEVER create custom versions of installed shadcn components
- **Human-in-the-loop:** All workflows have user approval checkpoints
- **Tests:** Unit tests co-located next to source files (`useHook.test.ts` next to `useHook.ts`). E2E tests in `tests/`.
## Build & Test Commands
```bash
npm run dev # Development server (localhost:3000)
npm run build # Production build
npm run lint # ESLint
npm run start # Production server
npm run dev # Development server (localhost:3000)
npm run build # Production build
npm run lint # ESLint
npm run start # Production server
npm test # Vitest unit/integration tests
npm run test:e2e # Playwright E2E tests
npm run test:all # Both test suites
```
## Product Context