Skip to content

Commit 9891b69

Browse files
committed
Unpatch project tests
1 parent 8c07c5b commit 9891b69

File tree

631 files changed

+631
-637
lines changed

Some content is hidden

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

631 files changed

+631
-637
lines changed

src/harness/projectsRunner.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,7 @@ namespace project {
219219
.map(output => utils.removeTestPathPrefixes(vpath.isAbsolute(output) ? vpath.relative(cwd, output, ignoreCase) : output));
220220

221221
const content = JSON.stringify(resolutionInfo, undefined, " ");
222-
223-
// TODO(rbuckton): This patches the baseline to replace lib.es5.d.ts with lib.d.ts.
224-
// This is only to make the PR for this change easier to read. A follow-up PR will
225-
// revert this change and accept the new baselines.
226-
// See https://github.com/Microsoft/TypeScript/pull/20763#issuecomment-352553264
227-
const patchedContent = content.replace(/lib\.es5\.d\.ts/g, "lib.d.ts");
228-
Harness.Baseline.runBaseline(this.getBaselineFolder(this.compilerResult.moduleKind) + this.testCaseJustName + ".json", () => patchedContent);
222+
Harness.Baseline.runBaseline(this.getBaselineFolder(this.compilerResult.moduleKind) + this.testCaseJustName + ".json", () => content);
229223
}
230224

231225
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.d.ts",
10+
"lib.es5.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.d.ts",
10+
"lib.es5.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.d.ts",
10+
"lib.es5.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.d.ts",
10+
"lib.es5.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.d.ts",
10+
"lib.es5.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.d.ts",
10+
"lib.es5.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.d.ts",
8+
"lib.es5.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.d.ts",
8+
"lib.es5.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.d.ts",
8+
"lib.es5.d.ts",
99
"decl.ts",
1010
"consume.ts"
1111
],

0 commit comments

Comments
 (0)