From e0d8916aa62349c6b512ba7f358fa18e02fd36d1 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 18 Jul 2022 14:10:39 +0000 Subject: [PATCH] fix(@angular-devkit/build-angular): fallback to use projectRoot when sourceRoot is missing during coverage With this change we fallback to use the projectRoot when the sourceRoot is missing for files to be included in coverage. Closes: #23591 --- .../angular_devkit/build_angular/src/webpack/configs/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts index be907d28937f..e53bc258b502 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts @@ -386,7 +386,7 @@ export async function getCommonConfig(wco: WebpackConfigOptions): Promise