From 8dbfa83cd635b8f88423b244eb3f32eba3b51185 Mon Sep 17 00:00:00 2001 From: Edwin van den Houdt Date: Wed, 26 Aug 2026 18:13:48 +0200 Subject: [PATCH] build: make coverageExclude actually exclude the generated API client The entry was a bare workspace-relative path ("libs/shared/src/ infrastructure/api-client.ts" in the app projects, "src/infrastructure/ api-client.ts" in the libraries) while every sibling in the same list is a glob. It matched nothing, so the 2372-line NSwag client was instrumented in all four projects: 987 mostly-uncovered lines that dragged the reported libs/shared/infrastructure figure from 94.7% down to 6.9%. Normalizes all four to "**/infrastructure/api-client.ts" and adds the entry to the beheer project, which was missing it entirely. api-client.provider.ts is hand-written and stays covered. Effect on the shared project's reported coverage: lines 96.2% -> 90.5% and branches 85.1% -> 80.2%, because the denominator is now real source instead of generated code inflating it. Found by the metrics baseline (BL-008). Co-Authored-By: Claude Opus 5 --- angular.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/angular.json b/angular.json index 30dde9d..2e55d08 100644 --- a/angular.json +++ b/angular.json @@ -106,7 +106,7 @@ "**/*.spec.ts", "**/*.stories.ts", "**/contracts/**", - "libs/shared/src/infrastructure/api-client.ts", + "**/infrastructure/api-client.ts", "apps/ssp/src/main.ts", "**/*.testing.ts", "**/*.d.ts" @@ -235,7 +235,7 @@ "**/*.spec.ts", "**/*.stories.ts", "**/contracts/**", - "libs/shared/src/infrastructure/api-client.ts", + "**/infrastructure/api-client.ts", "apps/behandelportal/src/main.ts", "**/*.testing.ts", "**/*.d.ts" @@ -293,7 +293,7 @@ "**/*.spec.ts", "**/*.stories.ts", "**/contracts/**", - "src/infrastructure/api-client.ts", + "**/infrastructure/api-client.ts", "src/test-entry.ts", "**/*.testing.ts", "**/*.d.ts" @@ -332,6 +332,7 @@ "**/*.spec.ts", "**/*.stories.ts", "**/contracts/**", + "**/infrastructure/api-client.ts", "src/test-entry.ts", "**/*.testing.ts", "**/*.d.ts"