From 56f5a7e5747263ad01586129e5b5826b66fb98e6 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Tue, 29 Sep 2026 10:11:00 -0400 Subject: [PATCH 1/2] docs: clarify test builders include and exclude schema descriptions The schema descriptions for the "include" and "exclude" options in the test builders previously stated that glob patterns were relative to the project root. In practice, test discovery resolves patterns relative to the project source root. This updates the descriptions to accurately reflect that patterns are relative to the project source root. --- packages/angular/build/src/builders/karma/schema.json | 4 ++-- packages/angular/build/src/builders/unit-test/schema.json | 4 ++-- .../build_angular/src/builders/karma/schema.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/angular/build/src/builders/karma/schema.json b/packages/angular/build/src/builders/karma/schema.json index 325f4298f779..25302c35e429 100644 --- a/packages/angular/build/src/builders/karma/schema.json +++ b/packages/angular/build/src/builders/karma/schema.json @@ -182,7 +182,7 @@ "type": "string" }, "default": ["**/*.spec.ts"], - "description": "Globs of files to include, relative to project root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead." + "description": "Globs of files to include, relative to the project source root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead." }, "exclude": { "type": "array", @@ -190,7 +190,7 @@ "type": "string" }, "default": [], - "description": "Globs of files to exclude, relative to the project root." + "description": "Globs of files to exclude, relative to the project source root." }, "sourceMap": { "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.", diff --git a/packages/angular/build/src/builders/unit-test/schema.json b/packages/angular/build/src/builders/unit-test/schema.json index 7064243c8832..66081d555cb1 100644 --- a/packages/angular/build/src/builders/unit-test/schema.json +++ b/packages/angular/build/src/builders/unit-test/schema.json @@ -43,14 +43,14 @@ "type": "string" }, "default": ["**/*.spec.ts", "**/*.test.ts"], - "description": "Specifies glob patterns of files to include for testing, relative to the project root. This option also has special handling for directory paths (includes all test files within) and file paths (includes the corresponding test file if one exists)." + "description": "Specifies glob patterns of files to include for testing, relative to the project source root. This option also has special handling for directory paths (includes all test files within) and file paths (includes the corresponding test file if one exists)." }, "exclude": { "type": "array", "items": { "type": "string" }, - "description": "Specifies glob patterns of files to exclude from testing, relative to the project root." + "description": "Specifies glob patterns of files to exclude from testing, relative to the project source root." }, "filter": { "type": "string", diff --git a/packages/angular_devkit/build_angular/src/builders/karma/schema.json b/packages/angular_devkit/build_angular/src/builders/karma/schema.json index c8ed717a90c8..3c5b505cadd7 100644 --- a/packages/angular_devkit/build_angular/src/builders/karma/schema.json +++ b/packages/angular_devkit/build_angular/src/builders/karma/schema.json @@ -141,7 +141,7 @@ "type": "string" }, "default": ["**/*.spec.ts"], - "description": "Globs of files to include, relative to project root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead." + "description": "Globs of files to include, relative to the project source root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead." }, "exclude": { "type": "array", @@ -149,7 +149,7 @@ "type": "string" }, "default": [], - "description": "Globs of files to exclude, relative to the project root." + "description": "Globs of files to exclude, relative to the project source root." }, "sourceMap": { "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.", From 9570f81abad0a6d47851251d1572dfaea676d5ce Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Tue, 29 Sep 2026 10:17:10 -0400 Subject: [PATCH 2/2] fixup! docs: clarify test builders include and exclude schema descriptions --- packages/angular/build/src/builders/karma/schema.json | 2 +- .../angular_devkit/build_angular/src/builders/karma/schema.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/angular/build/src/builders/karma/schema.json b/packages/angular/build/src/builders/karma/schema.json index 25302c35e429..50c739ff69c8 100644 --- a/packages/angular/build/src/builders/karma/schema.json +++ b/packages/angular/build/src/builders/karma/schema.json @@ -182,7 +182,7 @@ "type": "string" }, "default": ["**/*.spec.ts"], - "description": "Globs of files to include, relative to the project source root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead." + "description": "Globs of files to include, relative to the project source root. \nThere are 2 special cases:\n - when a path to a directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists, it will be included instead." }, "exclude": { "type": "array", diff --git a/packages/angular_devkit/build_angular/src/builders/karma/schema.json b/packages/angular_devkit/build_angular/src/builders/karma/schema.json index 3c5b505cadd7..fdd5927cfdac 100644 --- a/packages/angular_devkit/build_angular/src/builders/karma/schema.json +++ b/packages/angular_devkit/build_angular/src/builders/karma/schema.json @@ -141,7 +141,7 @@ "type": "string" }, "default": ["**/*.spec.ts"], - "description": "Globs of files to include, relative to the project source root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead." + "description": "Globs of files to include, relative to the project source root. \nThere are 2 special cases:\n - when a path to a directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists, it will be included instead." }, "exclude": { "type": "array",