Stop using expensive directoryExists in unit/rwc tests where it does not matter (#19486)

This commit is contained in:
Wesley Wigham
2017-10-25 17:04:41 -07:00
committed by GitHub
parent 570172990d
commit 1a6022d6dd

View File

@@ -1196,6 +1196,9 @@ namespace Harness {
traceResults = [];
compilerHost.trace = text => traceResults.push(text);
}
else {
compilerHost.directoryExists = () => true; // This only visibly affects resolution traces, so to save time we always return true where possible
}
const program = ts.createProgram(programFileNames, options, compilerHost);
const emitResult = program.emit();