fix(compiler-cli): normalize mock Windows file paths correctly (#36859)
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 #36859
This commit is contained in:
parent
26eacd4fcb
commit
b682bd1916
@ -42,6 +42,6 @@ export class MockFileSystemWindows extends MockFileSystem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
normalize<T extends PathString>(path: T): T {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user