From 1a62f74496857f688b7cd5890994a31a56b51aef Mon Sep 17 00:00:00 2001 From: JoostK Date: Fri, 26 Jun 2020 23:01:39 +0200 Subject: [PATCH] test(compiler-cli): fix drive letter casing in Windows filesystem emulation (#37782) In native windows, the drive letter is a capital letter, while our Windows filesystem emulation would use lowercase drive letters. This difference may introduce tests to behave differently in native Windows versus emulated Windows, potentially causing unexpected CI failures on Windows CI after a PR has been merged. Resolves FW-2267 PR Close #37782 --- .../ngtsc/file_system/testing/src/mock_file_system_windows.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_windows.ts b/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_windows.ts index a34a7f61b9..e41f288e0c 100644 --- a/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_windows.ts +++ b/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_windows.ts @@ -42,6 +42,6 @@ export class MockFileSystemWindows extends MockFileSystem { } normalize(path: T): T { - return path.replace(/^[\/\\]/i, 'c:/').replace(/\\/g, '/') as T; + return path.replace(/^[\/\\]/i, 'C:/').replace(/\\/g, '/') as T; } }