You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e9987cf
Browse filesBrowse the repository at this point in the historyBrowse files
fix(@angular-devkit/build-angular): provide an option to exclude specs in Karma builder
With this change we add an `exclude` option to the Karma builder to provide a way to exclude certain specs from the compilation.
This is useful, when having integration, e2e and unit tests with the same suffix.
Closes#24472
Copy file name to clipboardExpand all lines: packages/angular_devkit/build_angular/src/builders/karma/schema.json
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,15 @@
141
141
"type": "string"
142
142
},
143
143
"default": ["**/*.spec.ts"],
144
-
"description": "Globs of files to include, relative to workspace or 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."
144
+
"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."
145
+
},
146
+
"exclude": {
147
+
"type": "array",
148
+
"items": {
149
+
"type": "string"
150
+
},
151
+
"default": [],
152
+
"description": "Globs of files to exclude, relative to the project root."
145
153
},
146
154
"sourceMap": {
147
155
"description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
0 commit comments