Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,16 @@ Test helpers available in `test/utils/`:
- **Coverage**: `pnpm run cover`
- **NPM packages**: `node scripts/test-npm-packages.mjs` (long-running)

### Test Style — Functional Over Source Scanning

**NEVER write source-code-scanning tests**

Do not read source files and assert on their contents (`.toContain('pattern')`). These tests are brittle and break on any refactor.

- Write functional tests that verify **behavior**, not string patterns
- For modules requiring a built binary: use integration tests
- For pure logic: use unit tests with real function calls

### Vitest Memory Optimization

- **Pool**: `pool: 'forks'`, `singleFork: true`, `maxForks: 1`, `isolate: true`
Expand Down
Loading