Skip to content

Commit 5fbfb5c

Browse files
authored
chore: Update testpack to TS 5.0 (#1608)
* chore: stub 5.0 tests * chore: fix build * feat: tgypescript 5.0.4 * feat: update snapshots * feat: remove es3 test * chore: tremove node 14, add node 18 * fix: pnpm install * fix: build * fix: pnpm * fix: pnpm * fix: pnpm * fix: pnpm karma * fix: pnpm karma * fix: pnpm karma * fix: pnpm karma * fix: pnpm karma
1 parent 9533b2d commit 5fbfb5c

File tree

2,105 files changed

+21215
-21694
lines changed

Some content is hidden

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

2,105 files changed

+21215
-21694
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# https://github.com/microsoft/vscode-dev-containers/tree/v0.122.1/containers/typescript-node-14/.devcontainer/Dockerfile
44
#-------------------------------------------------------------------------------------------------------------
55

6-
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:16
6+
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:18
77

88
# The javascript-node image includes a non-root node user with sudo access. Use
99
# the "remoteUser" property in devcontainer.json to use it. On Linux, the container

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
name: Execution Tests Ubuntu
4949
strategy:
5050
matrix:
51-
node: [14, 16]
51+
node: [18, 16]
5252
ts: [3.8.3, 3.9.3, 4.0.3, 4.1.5, 4.2.4, 4.3.2, 4.4.2, 4.5.2, 4.6.2, 4.7.3, 4.8.2, 4.9.3, next]
5353
runs-on: ubuntu-latest
5454
steps:
@@ -75,7 +75,7 @@ jobs:
7575
name: Execution Tests Windows
7676
strategy:
7777
matrix:
78-
node: [14, 16]
78+
node: [18, 16]
7979
ts: [3.8.3, 3.9.3, 4.0.3, 4.1.5, 4.2.4, 4.3.2, 4.4.2, 4.5.2, 4.6.2, 4.7.3, 4.8.2, 4.9.3, next]
8080
runs-on: windows-latest
8181
steps:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14
1+
FROM node:18
22

33
# See https://crbug.com/795759
44
RUN apt-get update && apt-get install -yq libgconf-2-4

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"mocha": "^6.0.0",
9494
"prettier": "^2.0.5",
9595
"rimraf": "^2.6.2",
96-
"typescript": "^4.9.3",
96+
"typescript": "^5.0.4",
9797
"webpack": "^5.74.0",
9898
"webpack-cli": "^4.10.0"
9999
},

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export function getConfigParseResult(
159159
return configParseResult;
160160
}
161161

162-
const extendedConfigCache = new Map() as typescript.Map<typescript.ExtendedConfigCacheEntry>;
162+
const extendedConfigCache = new Map();
163163
export function getParsedCommandLine(
164164
compiler: typeof typescript,
165165
loaderOptions: LoaderOptions,

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function getFileLocations(
134134

135135
export function fsReadFile(
136136
fileName: string,
137-
encoding: BufferEncoding | undefined = 'utf8'
137+
encoding: typescript.BufferEncoding | undefined = 'utf8'
138138
) {
139139
fileName = path.normalize(fileName);
140140
try {

test/comparison-tests/aliasResolution/expectedOutput-4.9/bundle.js

Lines changed: 0 additions & 67 deletions
This file was deleted.

test/comparison-tests/aliasResolution/expectedOutput-4.9/output.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

test/comparison-tests/aliasResolution/expectedOutput-4.9/patch0/bundle.js

Lines changed: 0 additions & 67 deletions
This file was deleted.

test/comparison-tests/aliasResolution/expectedOutput-4.9/patch0/output.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)