diff --git a/packages/navigation/AGENTS.md b/packages/navigation/AGENTS.md index 72c46a3..62c50d5 100644 --- a/packages/navigation/AGENTS.md +++ b/packages/navigation/AGENTS.md @@ -71,10 +71,10 @@ beforeEach(() => { ## Tests -- **Factories:** `src/__factories__/header.factory.ts` — use `headerFactory.build({ overrides })` to construct test data with stable defaults. -- **Contract suite:** `src/__contracts__/navigation-repository.contract.ts` — runs against every repository implementation (mock + payload). +- **Factories:** `src/__factories__/header.factory.ts` and `src/__factories__/nav-item.factory.ts` — use `headerFactory.build({ overrides })` and `navItemFactory.build({ overrides })` to construct test data with stable defaults. +- **Contract suite:** `src/__contracts__/header-repository.contract.ts` — runs against every repository implementation (mock + payload). - **Unit tests:** colocated as `*.test.ts` next to the source file. -- **Feature integration:** `tests/get-header.feature.test.ts` — full slice through tRPC router → controller → use case → mock repo. +- **Feature integration:** none today (no `tests/` directory yet); add when a multi-layer flow needs end-to-end coverage. ```bash pnpm test --filter @repo/navigation # all tests for this feature