From 250b8415e90573148e13c2a034e88655497d8347 Mon Sep 17 00:00:00 2001 From: DudaGod Date: Wed, 24 Jul 2024 18:03:24 +0300 Subject: [PATCH 1/2] fix: move "@gemini-testing/commander" from devDeps to deps --- package-lock.json | 24 ++++++++++++------------ package.json | 6 +++--- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index e058460d9..5db050c9c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "html-reporter", - "version": "10.4.0", + "version": "10.5.0", "license": "MIT", "workspaces": [ "test/func/fixtures/*", @@ -15,6 +15,7 @@ ], "dependencies": { "@babel/runtime": "^7.22.5", + "@gemini-testing/commander": "^2.15.3", "@gemini-testing/sql.js": "^2.0.0", "ansi-html-community": "^0.0.8", "axios": "1.6.3", @@ -57,7 +58,6 @@ "@babel/preset-env": "^7.22.5", "@babel/preset-react": "^7.22.5", "@babel/preset-typescript": "^7.22.5", - "@gemini-testing/commander": "^2.15.3", "@gravity-ui/components": "^3.7.0", "@gravity-ui/uikit": "^6.20.0", "@playwright/test": "^1.44.1", @@ -176,12 +176,16 @@ }, "peerDependencies": { "hermione": ">=8.0.0", + "playwright": "*", "testplane": "*" }, "peerDependenciesMeta": { "hermione": { "optional": true }, + "playwright": { + "optional": true + }, "testplane": { "optional": true } @@ -2782,8 +2786,7 @@ "node_modules/@gemini-testing/commander": { "version": "2.15.3", "resolved": "https://registry.npmjs.org/@gemini-testing/commander/-/commander-2.15.3.tgz", - "integrity": "sha512-HPV73pHeL7BozcIaJTJVXIY3kwoAscy+yVVehG0QqVhfmdx6RPqpQ9KIFwV1amlBMObXvcS3gI7LojlwiI9eXw==", - "dev": true + "integrity": "sha512-HPV73pHeL7BozcIaJTJVXIY3kwoAscy+yVVehG0QqVhfmdx6RPqpQ9KIFwV1amlBMObXvcS3gI7LojlwiI9eXw==" }, "node_modules/@gemini-testing/sql.js": { "version": "2.0.0", @@ -15706,7 +15709,6 @@ "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, "hasInstallScript": true, "optional": true, "os": [ @@ -22269,7 +22271,7 @@ "version": "1.44.1", "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.44.1.tgz", "integrity": "sha512-qr/0UJ5CFAtloI3avF95Y0L1xQo6r3LQArLIg/z/PoGJ6xa+EwzrwO5lpNr/09STxdHuUoP2mvuELJS+hLdtgg==", - "dev": true, + "devOptional": true, "dependencies": { "playwright-core": "1.44.1" }, @@ -22287,7 +22289,7 @@ "version": "1.44.1", "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.44.1.tgz", "integrity": "sha512-wh0JWtYTrhv1+OSsLPgFzGzt67Y7BE/ZS3jEqgGBlp2ppp1ZDj8c+9IARNW4dwf1poq5MgHreEM2KV/GuR4cFA==", - "dev": true, + "devOptional": true, "bin": { "playwright-core": "cli.js" }, @@ -33176,8 +33178,7 @@ "@gemini-testing/commander": { "version": "2.15.3", "resolved": "https://registry.npmjs.org/@gemini-testing/commander/-/commander-2.15.3.tgz", - "integrity": "sha512-HPV73pHeL7BozcIaJTJVXIY3kwoAscy+yVVehG0QqVhfmdx6RPqpQ9KIFwV1amlBMObXvcS3gI7LojlwiI9eXw==", - "dev": true + "integrity": "sha512-HPV73pHeL7BozcIaJTJVXIY3kwoAscy+yVVehG0QqVhfmdx6RPqpQ9KIFwV1amlBMObXvcS3gI7LojlwiI9eXw==" }, "@gemini-testing/sql.js": { "version": "2.0.0", @@ -43182,7 +43183,6 @@ "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, "optional": true }, "fstream": { @@ -48235,7 +48235,7 @@ "version": "1.44.1", "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.44.1.tgz", "integrity": "sha512-qr/0UJ5CFAtloI3avF95Y0L1xQo6r3LQArLIg/z/PoGJ6xa+EwzrwO5lpNr/09STxdHuUoP2mvuELJS+hLdtgg==", - "dev": true, + "devOptional": true, "requires": { "fsevents": "2.3.2", "playwright-core": "1.44.1" @@ -48245,7 +48245,7 @@ "version": "1.44.1", "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.44.1.tgz", "integrity": "sha512-wh0JWtYTrhv1+OSsLPgFzGzt67Y7BE/ZS3jEqgGBlp2ppp1ZDj8c+9IARNW4dwf1poq5MgHreEM2KV/GuR4cFA==", - "dev": true + "devOptional": true }, "playwright-fixture-report": { "version": "file:test/func/fixtures/playwright" diff --git a/package.json b/package.json index cb0601577..5cbc5472d 100644 --- a/package.json +++ b/package.json @@ -67,8 +67,8 @@ "license": "MIT", "peerDependencies": { "hermione": ">=8.0.0", - "testplane": "*", - "playwright": "*" + "playwright": "*", + "testplane": "*" }, "peerDependenciesMeta": { "hermione": { @@ -83,6 +83,7 @@ }, "dependencies": { "@babel/runtime": "^7.22.5", + "@gemini-testing/commander": "^2.15.3", "@gemini-testing/sql.js": "^2.0.0", "ansi-html-community": "^0.0.8", "axios": "1.6.3", @@ -122,7 +123,6 @@ "@babel/preset-env": "^7.22.5", "@babel/preset-react": "^7.22.5", "@babel/preset-typescript": "^7.22.5", - "@gemini-testing/commander": "^2.15.3", "@gravity-ui/components": "^3.7.0", "@gravity-ui/uikit": "^6.20.0", "@playwright/test": "^1.44.1", From bf260155e8ae1831866078a9a89b51ede0a2f1c0 Mon Sep 17 00:00:00 2001 From: DudaGod Date: Wed, 24 Jul 2024 23:39:15 +0300 Subject: [PATCH 2/2] fix(pwt): correctly import ts config with types --- lib/bundle/transformer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bundle/transformer.ts b/lib/bundle/transformer.ts index 5238a4772..f885dfa5b 100644 --- a/lib/bundle/transformer.ts +++ b/lib/bundle/transformer.ts @@ -10,6 +10,7 @@ export const setupTransformHook = (): VoidFunction => { babelrc: false, configFile: false, compact: false, + presets: [require('@babel/preset-typescript')], plugins: [ require('@babel/plugin-transform-modules-commonjs') ]