From 87112c43b054cb770ca98ef6cb803037ec2aeb98 Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Tue, 5 May 2026 19:33:11 +0200 Subject: [PATCH] docs(navigation): correct file references in Tests section The previous commit referenced nonexistent files (navigation-repository.contract.ts, tests/get-header.feature.test.ts). The actual contract is header-repository.contract.ts and navigation has no tests/ directory yet. Also adds nav-item.factory.ts to the factories bullet (created in Task 3). Co-Authored-By: Claude Opus 4.7 (1M context) --- packages/navigation/AGENTS.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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