Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: update typescript to 5.1.3 (#23461)

Max Schmitta97bdd00169b
diff --git a/package-lock.json b/package-lock.json
index c666663f8e..23233b0e77 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -59,14 +59,14 @@
"rimraf": "^3.0.2",
"socksv5": "0.0.6",
"ssim.js": "^3.5.0",
- "typescript": "^5.0.2",
+ "typescript": "^5.1.3",
"vite": "^4.3.3",
"ws": "^8.5.0",
"xml2js": "^0.5.0",
"yaml": "^2.2.2"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
}
},
"node_modules/@ampproject/remapping": {
@@ -5721,16 +5721,16 @@
"license": "MIT"
},
"node_modules/typescript": {
- "version": "5.0.2",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz",
- "integrity": "sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==",
+ "version": "5.1.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz",
+ "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
- "node": ">=12.20"
+ "node": ">=14.17"
}
},
"node_modules/universalify": {
@@ -6201,7 +6201,7 @@
"playwright": "cli.js"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
}
},
"packages/playwright-chromium": {
@@ -6215,17 +6215,17 @@
"playwright": "cli.js"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
}
},
"packages/playwright-core": {
"version": "1.35.0-next",
"license": "Apache-2.0",
"bin": {
- "playwright": "cli.js"
+ "playwright-core": "cli.js"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
}
},
"packages/playwright-ct-core": {
@@ -6240,7 +6240,7 @@
"playwright": "cli.js"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
}
},
"packages/playwright-ct-react": {
@@ -6255,7 +6255,7 @@
"playwright": "cli.js"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
}
},
"packages/playwright-ct-react/node_modules/@vitejs/plugin-react": {
@@ -6287,7 +6287,7 @@
"playwright": "cli.js"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
}
},
"packages/playwright-ct-react17/node_modules/@vitejs/plugin-react": {
@@ -6322,7 +6322,7 @@
"solid-js": "^1.7.0"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
}
},
"packages/playwright-ct-svelte": {
@@ -6340,7 +6340,7 @@
"svelte": "^3.55.1"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
}
},
"packages/playwright-ct-vue": {
@@ -6355,7 +6355,7 @@
"playwright": "cli.js"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
}
},
"packages/playwright-ct-vue/node_modules/@vitejs/plugin-vue": {
@@ -6409,7 +6409,7 @@
"vue": "^2.7.14"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
}
},
"packages/playwright-firefox": {
@@ -6423,7 +6423,7 @@
"playwright": "cli.js"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
}
},
"packages/playwright-test": {
@@ -6438,7 +6438,7 @@
"playwright": "cli.js"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
},
"optionalDependencies": {
"fsevents": "2.3.2"
@@ -6455,7 +6455,7 @@
"playwright": "cli.js"
},
"engines": {
- "node": ">=14"
+ "node": ">=16"
}
},
"packages/recorder": {
@@ -10227,9 +10227,9 @@
"dev": true
},
"typescript": {
- "version": "5.0.2",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz",
- "integrity": "sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==",
+ "version": "5.1.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz",
+ "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==",
"dev": true
},
"universalify": {
diff --git a/package.json b/package.json
index 01e3b212a2..8d48c0409f 100644
--- a/package.json
+++ b/package.json
@@ -94,7 +94,7 @@
"rimraf": "^3.0.2",
"socksv5": "0.0.6",
"ssim.js": "^3.5.0",
- "typescript": "^5.0.2",
+ "typescript": "^5.1.3",
"vite": "^4.3.3",
"ws": "^8.5.0",
"xml2js": "^0.5.0",
diff --git a/tests/playwright-test/types.spec.ts b/tests/playwright-test/types.spec.ts
index 893596ca09..ffec4f889a 100644
--- a/tests/playwright-test/types.spec.ts
+++ b/tests/playwright-test/types.spec.ts
@@ -78,15 +78,15 @@ test('should check types of fixtures', async ({ runTSC }) => {
}, { scope: 'test', auto: true } ],
});
const fail10 = test.extend<{}, {}>({
+ // @ts-expect-error
bar: [ async ({}, use) => {
await use(42);
- // @ts-expect-error
}, { scope: 'test' } ],
});
const fail11 = test.extend<{ yay: string }>({
+ // @ts-expect-error
yay: [ async ({}, use) => {
await use('foo');
- // @ts-expect-error
}, { scope: 'test', timeout: 'str' } ],
});