test: fix ngc-wrapped bazel tests in windows (#30111)

Partially addresses #29785

PR Close #30111
This commit is contained in:
Alan Agius
2019-04-26 10:15:17 +02:00
committed by Andrew Kushnir
parent 28a1caa0ed
commit 67012509a8
3 changed files with 11 additions and 14 deletions

View File

@ -202,7 +202,7 @@ export function compile({allDepsCompiledWithBazel = true, compilerOpts, tsHost,
throw new Error(`Couldn't find bazel bin in the rootDirs: ${compilerOpts.rootDirs}`);
}
const writtenExpectedOuts = [...expectedOuts];
const writtenExpectedOuts = expectedOuts.map(p => p.replace(/\\/g, '/'));
const originalWriteFile = tsHost.writeFile.bind(tsHost);
tsHost.writeFile =