fix(compiler-cli): normalize mock Windows file paths correctly (#36968)

Since the `MockFileSystemWindows` is case-insensitive, any
drive path that must be added to a normalized path should be lower
case to make the path canonical.

PR Close #36968
This commit is contained in:
Pete Bacon Darwin
2020-05-07 08:29:24 +01:00
committed by Alex Rickabaugh
parent b6c042d0a3
commit 654868f584

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;
}
}