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
This commit is contained in:
JoostK 2020-06-26 23:01:39 +02:00 committed by Misko Hevery
parent 2b1b7180db
commit 1a62f74496
1 changed files with 1 additions and 1 deletions

View File

@ -42,6 +42,6 @@ export class MockFileSystemWindows extends MockFileSystem {
}
normalize<T extends PathString>(path: T): T {
return path.replace(/^[\/\\]/i, 'c:/').replace(/\\/g, '/') as T;
return path.replace(/^[\/\\]/i, 'C:/').replace(/\\/g, '/') as T;
}
}