Skip to content

Commit b4c3bd4

Browse files
committed
Temporarily revert baselines
1 parent 279b348 commit b4c3bd4

631 files changed

Lines changed: 637 additions & 631 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/harness/projectsRunner.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,13 @@ namespace project {
210210
.map(output => utils.removeTestPathPrefixes(vpath.isAbsolute(output) ? vpath.relative(cwd, output, ignoreCase) : output));
211211

212212
const content = JSON.stringify(resolutionInfo, undefined, " ");
213-
Harness.Baseline.runBaseline(this.getBaselineFolder(this.compilerResult.moduleKind) + this.testCaseJustName + ".json", () => content);
213+
214+
// TODO(rbuckton): This patches the baseline to replace lib.es5.d.ts with lib.d.ts.
215+
// This is only to make the PR for this change easier to read. A follow-up PR will
216+
// revert this change and accept the new baselines.
217+
// See https://github.com/Microsoft/TypeScript/pull/20763#issuecomment-352553264
218+
const patchedContent = content.replace(/lib\.es5\.d\.ts/g, "lib.d.ts");
219+
Harness.Baseline.runBaseline(this.getBaselineFolder(this.compilerResult.moduleKind) + this.testCaseJustName + ".json", () => patchedContent);
214220
}
215221

216222
public verifyDiagnostics() {

tests/baselines/reference/project/baseline/amd/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"baselineCheck": true,
88
"runTest": true,
99
"resolvedInputFiles": [
10-
"lib.es5.d.ts",
10+
"lib.d.ts",
1111
"decl.ts",
1212
"emit.ts"
1313
],

tests/baselines/reference/project/baseline/node/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"baselineCheck": true,
88
"runTest": true,
99
"resolvedInputFiles": [
10-
"lib.es5.d.ts",
10+
"lib.d.ts",
1111
"decl.ts",
1212
"emit.ts"
1313
],

tests/baselines/reference/project/baseline2/amd/baseline2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"baselineCheck": true,
88
"runTest": true,
99
"resolvedInputFiles": [
10-
"lib.es5.d.ts",
10+
"lib.d.ts",
1111
"decl.ts",
1212
"dont_emit.ts"
1313
],

tests/baselines/reference/project/baseline2/node/baseline2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"baselineCheck": true,
88
"runTest": true,
99
"resolvedInputFiles": [
10-
"lib.es5.d.ts",
10+
"lib.d.ts",
1111
"decl.ts",
1212
"dont_emit.ts"
1313
],

tests/baselines/reference/project/baseline3/amd/baseline3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"baselineCheck": true,
88
"runTest": true,
99
"resolvedInputFiles": [
10-
"lib.es5.d.ts",
10+
"lib.d.ts",
1111
"nestedModule.ts"
1212
],
1313
"emittedFiles": [

tests/baselines/reference/project/baseline3/node/baseline3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"baselineCheck": true,
88
"runTest": true,
99
"resolvedInputFiles": [
10-
"lib.es5.d.ts",
10+
"lib.d.ts",
1111
"nestedModule.ts"
1212
],
1313
"emittedFiles": [

tests/baselines/reference/project/cantFindTheModule/amd/cantFindTheModule.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"decl.ts"
66
],
77
"resolvedInputFiles": [
8-
"lib.es5.d.ts",
8+
"lib.d.ts",
99
"decl.ts"
1010
],
1111
"emittedFiles": [

tests/baselines/reference/project/cantFindTheModule/node/cantFindTheModule.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"decl.ts"
66
],
77
"resolvedInputFiles": [
8-
"lib.es5.d.ts",
8+
"lib.d.ts",
99
"decl.ts"
1010
],
1111
"emittedFiles": [

tests/baselines/reference/project/circularReferencing/amd/circularReferencing.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"consume.ts"
66
],
77
"resolvedInputFiles": [
8-
"lib.es5.d.ts",
8+
"lib.d.ts",
99
"decl.ts",
1010
"consume.ts"
1111
],

0 commit comments

Comments
 (0)