diff --git a/packages/compiler-cli/test/helpers/src/mock_file_loading.ts b/packages/compiler-cli/test/helpers/src/mock_file_loading.ts index 749e57c93d..7a57578910 100644 --- a/packages/compiler-cli/test/helpers/src/mock_file_loading.ts +++ b/packages/compiler-cli/test/helpers/src/mock_file_loading.ts @@ -77,7 +77,9 @@ export function loadFakeCore(fs: FileSystem, basePath: string = '/') { function loadFolder(path: string): Folder { const tmpFs = new MockFileSystemPosix(true); - loadTestDirectory(tmpFs, tmpFs.resolve(path), tmpFs.resolve('/')); + // Note that we intentionally pass the native `path`, without resolving it through the file + // system, because the mock posix file system may break paths coming from a non-posix system. + loadTestDirectory(tmpFs, path, tmpFs.resolve('/')); return tmpFs.dump(); }