Skip to content

Commit e34bfe5

Browse files
committed
fix(@angular-devkit/build-angular): ignore specs in node_modules when finding specs
Some libraries ship spec in node_modules which might result errors such ``` ./node_modules/comment-parser/tests/unit/spacer-description-joiner.spec.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: /Users/kkostadinov/Projects/material.angular.io/node_modules/comment-parser/tests/unit/spacer-description-joiner.spec.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. ```
1 parent 3928d08 commit e34bfe5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/angular_devkit/build_angular/src/builders/karma/find-tests-plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ async function findMatchingTests(
132132
root: projectSourceRoot,
133133
nomount: true,
134134
absolute: true,
135+
ignore: ['**/node_modules/**'],
135136
});
136137
}
137138

0 commit comments

Comments
 (0)