From 696e8bc492cdc91aec8104188f5d0caea5ef2194 Mon Sep 17 00:00:00 2001 From: Yunus Date: Mon, 29 Jun 2026 11:58:54 +0100 Subject: [PATCH] test(components): cover Footer nav, external rel, and dynamic year --- jest.config.ts | 1 + src/components/__tests__/Footer.test.tsx | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/jest.config.ts b/jest.config.ts index 9b81c53..e1c138f 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -29,6 +29,7 @@ const config: Config = { "./src/components/Breadcrumb.tsx": { statements: 100, branches: 100, functions: 100, lines: 100 }, "./src/components/Card.tsx": { statements: 100, branches: 100, functions: 100, lines: 100 }, "./src/components/ConfirmDialog.tsx": { statements: 100, branches: 94, functions: 100, lines: 100 }, + "./src/components/Footer.tsx": { statements: 100, branches: 100, functions: 100, lines: 100 }, "./src/components/Header.tsx": { statements: 100, branches: 87, functions: 90, lines: 100 }, "./src/components/Pagination.tsx": { statements: 100, branches: 100, functions: 100, lines: 100 }, "./src/components/TextField.tsx": { statements: 100, branches: 100, functions: 100, lines: 100 }, diff --git a/src/components/__tests__/Footer.test.tsx b/src/components/__tests__/Footer.test.tsx index 1e2d9ac..ef31961 100644 --- a/src/components/__tests__/Footer.test.tsx +++ b/src/components/__tests__/Footer.test.tsx @@ -41,6 +41,21 @@ describe("Footer", () => { } }); + it("validates each internal link target resolves to an existing route under src/app", () => { + render(