Update CLAUDE.md: clarify testing instructions and discourage monorepo-wide yarn test usage

This commit is contained in:
MartinBraquet
2026-07-29 20:28:56 +02:00
parent 98d9e5a7dd
commit d6600322ec

View File

@@ -41,13 +41,14 @@ yarn lint # ESLint across all packages
yarn lint-fix
yarn typecheck # tsc --noEmit across all packages
yarn prettier
yarn test # Jest unit + integration across all workspaces
yarn test:coverage
yarn test:e2e # Playwright E2E (spins up services)
yarn test:e2e:dev # Playwright against an already-running dev server
```
Single workspace / single test (the workspace `test` script already passes `--config`, so append Jest args):
**Don't run `yarn test` (the whole monorepo).** It is slow and mostly unrelated to any given change.
Run only the workspaces the change touches, naming specific files where you can — the full suite is
CI's job. The workspace `test` script already passes `--config`, so Jest args just append:
```bash
yarn --cwd=common test