mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 02:15:10 -05:00
Unpatch project tests
This commit is contained in:
@@ -219,13 +219,7 @@ namespace project {
|
||||
.map(output => utils.removeTestPathPrefixes(vpath.isAbsolute(output) ? vpath.relative(cwd, output, ignoreCase) : output));
|
||||
|
||||
const content = JSON.stringify(resolutionInfo, undefined, " ");
|
||||
|
||||
// TODO(rbuckton): This patches the baseline to replace lib.es5.d.ts with lib.d.ts.
|
||||
// This is only to make the PR for this change easier to read. A follow-up PR will
|
||||
// revert this change and accept the new baselines.
|
||||
// See https://github.com/Microsoft/TypeScript/pull/20763#issuecomment-352553264
|
||||
const patchedContent = content.replace(/lib\.es5\.d\.ts/g, "lib.d.ts");
|
||||
Harness.Baseline.runBaseline(this.getBaselineFolder(this.compilerResult.moduleKind) + this.testCaseJustName + ".json", () => patchedContent);
|
||||
Harness.Baseline.runBaseline(this.getBaselineFolder(this.compilerResult.moduleKind) + this.testCaseJustName + ".json", () => content);
|
||||
}
|
||||
|
||||
public verifyDiagnostics() {
|
||||
|
||||
Reference in New Issue
Block a user