8000 Filter library text from RWC output (#8297) · sweshgit/TypeScript@73fb8a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 73fb8a0

Browse files
committed
Filter library text from RWC output (microsoft#8297)
1 parent 8ee8d8c commit 73fb8a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/harness/rwcRunner.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,9 @@ namespace RWC {
190190
if (compilerResult.errors.length === 0) {
191191
return null;
192192
}
193-
194-
return Harness.Compiler.getErrorBaseline(inputFiles.concat(otherFiles), compilerResult.errors);
193+
// Do not include the library in the baselines to avoid noise
194+
const baselineFiles = inputFiles.concat(otherFiles).filter(f => !Harness.isDefaultLibraryFile(f.unitName));
195+
return Harness.Compiler.getErrorBaseline(baselineFiles, compilerResult.errors);
195196
}, false, baselineOpts);
196197
});
197198

0 commit comments

Comments
 (0)
0