From 12dfa678942160b8ea21601c4257546239f43a74 Mon Sep 17 00:00:00 2001 From: Viktor Vaczi Date: Sat, 29 Nov 2025 12:39:30 +0100 Subject: [PATCH] Add TypeScript configuration for Playwright tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add proper TypeScript setup with tsconfig.json and type definitions to resolve type errors in the e2e test files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- tests/package-lock.json | 35 ++++++++++++++++++++++++++++++++++- tests/package.json | 4 +++- tests/tsconfig.json | 13 +++++++++++++ 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 tests/tsconfig.json diff --git a/tests/package-lock.json b/tests/package-lock.json index ee7361e..f9ca60c 100644 --- a/tests/package-lock.json +++ b/tests/package-lock.json @@ -9,7 +9,9 @@ "version": "1.0.0", "devDependencies": { "@playwright/test": "^1.40.0", - "serve": "^14.2.0" + "@types/node": "^24.10.1", + "serve": "^14.2.0", + "typescript": "^5.9.3" } }, "node_modules/@playwright/test": { @@ -28,6 +30,16 @@ "node": ">=18" } }, + "node_modules/@types/node": { + "version": "24.10.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", + "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.16.0" + } + }, "node_modules/@zeit/schemas": { "version": "2.36.0", "resolved": "https://registry.npmjs.org/@zeit/schemas/-/schemas-2.36.0.tgz", @@ -1039,6 +1051,27 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "dev": true, + "license": "MIT" + }, "node_modules/update-check": { "version": "1.5.4", "resolved": "https://registry.npmjs.org/update-check/-/update-check-1.5.4.tgz", diff --git a/tests/package.json b/tests/package.json index 1363721..033952e 100644 --- a/tests/package.json +++ b/tests/package.json @@ -11,6 +11,8 @@ }, "devDependencies": { "@playwright/test": "^1.40.0", - "serve": "^14.2.0" + "@types/node": "^24.10.1", + "serve": "^14.2.0", + "typescript": "^5.9.3" } } diff --git a/tests/tsconfig.json b/tests/tsconfig.json new file mode 100644 index 0000000..3a494d8 --- /dev/null +++ b/tests/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "lib": ["ES2020", "DOM"], + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "moduleResolution": "node", + "noEmit": true + }, + "include": ["e2e/**/*.ts"] +}