Skip to content

Commit

Permalink
Update tests for TypeScript 5.1
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 555161590
  • Loading branch information
tsjs-language-eng authored and copybara-github committed Aug 9, 2023
1 parent 9e293ee commit 6e1a9a7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 138 deletions.
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dependencies": {
"minimist": "^1.2.3",
"tsickle": "file:../",
"typescript": "5.0.4"
"typescript": "5.1.5"
},
"devDependencies": {
"@types/minimist": "1.2.0",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"out/src/*"
],
"peerDependencies": {
"typescript": "~5.0.4"
"typescript": "~5.1.5"
},
"devDependencies": {
"@types/diff-match-patch": "^1.0.32",
Expand All @@ -28,7 +28,7 @@
"source-map-support": "^0.5.19",
"tslib": "^2.2.0",
"tslint": "^6.1.3",
"typescript": "5.0.4"
"typescript": "5.1.5"
},
"scripts": {
"build": "tsc",
Expand Down
89 changes: 0 additions & 89 deletions test_files/class_decorator/class_decorator.js

This file was deleted.

40 changes: 0 additions & 40 deletions test_files/class_decorator/class_decorator.ts

This file was deleted.

4 changes: 2 additions & 2 deletions test_files/namespaced.no_nstransform/merged_namespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exports.Foo = Foo;
class Nested {
}
Foo.Nested = Nested;
})(Foo = exports.Foo || (exports.Foo = {}));
})(Foo || (Foo = {}));
/**
* @return {void}
*/
Expand All @@ -32,7 +32,7 @@ exports.bar = bar;
class Nested {
}
bar.Nested = Nested;
})(bar = exports.bar || (exports.bar = {}));
})(bar || (bar = {}));
class Baz {
}
exports.Baz = Baz;
Expand Down
7 changes: 4 additions & 3 deletions test_files/namespaced.no_nstransform/reopen_ns.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ exports = {};
var ns;
(function (ns) {
ns.x = 0;
})(ns = exports.ns || (exports.ns = {}));
})(ns || (ns = {}));
exports.ns = ns;
(function (ns) {
ns.y = 0;
})(ns = exports.ns || (exports.ns = {}));
})(ns || (ns = {}));
// this implicitly re-emits `ns = exports.ns || (exports.ns = {}));`, so it is
// in a way reopening ns, which can cause issues with Closure unless the right
// suppressions are present.
Expand All @@ -29,4 +30,4 @@ var ns;
(function (bar) {
bar.y = 0;
})(bar = ns.bar || (ns.bar = {}));
})(ns = exports.ns || (exports.ns = {}));
})(ns || (ns = {}));
2 changes: 1 addition & 1 deletion test_files/readonly/readonly.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class Class {
this.normalProp = '';
}
}
Class.staticProp = '';
exports.Class = Class;
Class.staticProp = '';
/* istanbul ignore if */
if (false) {
/**
Expand Down

0 comments on commit 6e1a9a7

Please sign in to comment.