fix(features): address Task 3 code review feedback

- Add navItemFactory to navigation (spec §5.1 — was missing)
- Refactor blog/router.test.ts to use articleFactory (eliminate new Date())
- headerFactory uses sequence for logoId (deterministic buildList output)
- Align media/tsconfig.json with other features (jsx + tests/ include)
- Refactor auth/container.test.ts to use userFactory

Reviewer: superpowers:code-reviewer (Task 3 of Plan 7).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-05 15:18:35 +02:00
parent 53c2fbb9e1
commit a74f217703
8 changed files with 57 additions and 19 deletions

View File

@@ -0,0 +1,8 @@
import { defineFactory } from "@repo/core-testing/factory";
import type { HeaderItem } from "../entities/header.js";
export const navItemFactory = defineFactory<HeaderItem>(({ sequence }) => ({
label: `Item ${sequence}`,
href: `/item-${sequence}`,
external: false,
}));