From f2f0bd31aed5b1f972ebda35d7f776481ff21cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sun, 22 Mar 2026 12:39:10 +0100 Subject: [PATCH] Add testing expectations to CLAUDE.md Explicit instruction for coding agents: write tests alongside code, run test suites before committing. Co-Authored-By: Claude Opus 4.6 (1M context) --- CLAUDE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index dcc1bea..e625f62 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -73,6 +73,8 @@ pnpm test:e2e:ui # Run E2E tests with Playwright UI Tests live in `e2e/` at repo root. Scoped per app via `testMatch` in `playwright.config.ts`. Playwright auto-starts dev servers if not already running. +**Important**: Write tests alongside implementation, not as an afterthought. When implementing a package or utility, add a co-located `*.test.ts` file. When implementing a user-facing feature, add or update E2E tests. Run `pnpm test` and `pnpm test:e2e` before committing. + ## Code Conventions - All user-facing strings must use i18n (`useTranslation()` hook, never hardcode strings)