Skip to content

Commit 1a6022d

Browse files
authored
Stop using expensive directoryExists in unit/rwc tests where it does not matter (#19486)
1 parent 5701729 commit 1a6022d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/harness/harness.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,9 @@ namespace Harness {
11961196
traceResults = [];
11971197
compilerHost.trace = text => traceResults.push(text);
11981198
}
1199+
else {
1200+
compilerHost.directoryExists = () => true; // This only visibly affects resolution traces, so to save time we always return true where possible
1201+
}
11991202
const program = ts.createProgram(programFileNames, options, compilerHost);
12001203

12011204
const emitResult = program.emit();

0 commit comments

Comments
 (0)