Skip to content

Commit 50e330d

Browse files
committed
fix(@angular/build): disable glob directory expansion when finding tests
When migrating the glob package to `tinyglobby` the `expandDirectories` option was left at its default value of `true`. This differs from the previous behavior and can inadvertently cause files that are not expected to be included to show up as tests.
1 parent 1c2d49e commit 50e330d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/angular/build/src/builders/unit-test/test-discovery.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export async function findTests(
5454
const globMatches = await glob(dynamicPatterns, {
5555
cwd: projectSourceRoot,
5656
absolute: true,
57+
expandDirectories: false,
5758
ignore: ['**/node_modules/**', ...normalizedExcludes],
5859
});
5960

0 commit comments

Comments
 (0)