From 077809398c1cfbb63325540362949d2eff261b5d Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 15 May 2019 19:28:50 +0200 Subject: [PATCH] test: fix compiler tests in windows ci (#30482) This is a tentative fix for the error `Cannot write file '/node_modules/@angular/core/core.ngfactory.d.ts' because it would overwrite input file.` that is showing in codefresh windows ci. PR Close #30482 --- packages/compiler/test/aot/test_util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler/test/aot/test_util.ts b/packages/compiler/test/aot/test_util.ts index 263bf4739a..788ed4184e 100644 --- a/packages/compiler/test/aot/test_util.ts +++ b/packages/compiler/test/aot/test_util.ts @@ -744,7 +744,7 @@ function isDts(fileName: string): boolean { } function isSourceOrDts(fileName: string): boolean { - return /\.ts$/.test(fileName); + return /\.ts$/.test(fileName) && !/(ngfactory|ngstyle|ngsummary).d.ts$/.test(fileName); } function resolveNpmTreeArtifact(manifestPath: string, resolveFile = 'package.json') {