Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): ignore specs in node_modules when…
Browse files Browse the repository at this point in the history
… 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.
```
  • Loading branch information
alan-agius4 committed Oct 12, 2022
1 parent 3928d08 commit e34bfe5
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -132,6 +132,7 @@ async function findMatchingTests(
root: projectSourceRoot,
nomount: true,
absolute: true,
ignore: ['**/node_modules/**'],
});
}

Expand Down

0 comments on commit e34bfe5

Please sign in to comment.