Skip to content

Commit 14f9ed9

Browse files
committed
Only give to typeWriter files that were part of compiled program
1 parent 834a6f7 commit 14f9ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/harness/compilerRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class CompilerBaselineRunner extends RunnerBase {
257257
// NEWTODO: Type baselines
258258
if (result.errors.length === 0) {
259259
Harness.Baseline.runBaseline('Correct expression types for ' + fileName, justName.replace(/\.ts/, '.types'), () => {
260-
var allFiles = toBeCompiled.concat(otherFiles);
260+
var allFiles = toBeCompiled.concat(otherFiles).filter(file => !!checker.getProgram().getSourceFile(file.unitName));
261261
var typeLines: string[] = [];
262262
var typeMap: { [fileName: string]: { [lineNum: number]: string[]; } } = {};
263263
var walker = new TypeWriterWalker(checker);

0 commit comments

Comments
 (0)