Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c8c7318

Browse files
clydinalan-agius4
authored andcommitted
fix(@angular/build): ensure matching coverage excludes with karma on Windows
When on Windows, the coverage exclusion paths need to be made absolute via the Node.js path builtin to ensure matching with the files during the build process.
1 parent c39c344 commit c8c7318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎packages/angular/build/src/builders/karma/application_builder.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ function getInstrumentationExcludedPaths(root: string, excludedPaths: string[]):
614614

615615
for (const excludeGlob of excludedPaths) {
616616
const excludePath = excludeGlob[0] === '/' ? excludeGlob.slice(1) : excludeGlob;
617-
globSync(excludePath, { absolute: true,cwd: root }).forEach((p) => excluded.add(p));
617+
globSync(excludePath, { cwd: root }).forEach((p) => excluded.add(path.join(root,p)));
618618
}
619619

620620
return excluded;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /