diff --git a/__tests__/frontend/basic.spec.ts b/__tests__/frontend/basic.spec.ts index 7397c5da..69ee4f13 100644 --- a/__tests__/frontend/basic.spec.ts +++ b/__tests__/frontend/basic.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/configuration.spec.ts b/__tests__/frontend/configuration.spec.ts index bedac650..2aad746b 100644 --- a/__tests__/frontend/configuration.spec.ts +++ b/__tests__/frontend/configuration.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/destination-selection-api-error.spec.ts b/__tests__/frontend/destination-selection-api-error.spec.ts index c5d445d0..8fcd1179 100644 --- a/__tests__/frontend/destination-selection-api-error.spec.ts +++ b/__tests__/frontend/destination-selection-api-error.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/destination-selection-unhandled-error.spec.ts b/__tests__/frontend/destination-selection-unhandled-error.spec.ts index 74479cab..826e853c 100644 --- a/__tests__/frontend/destination-selection-unhandled-error.spec.ts +++ b/__tests__/frontend/destination-selection-unhandled-error.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/destination-selection-unknown-error.spec.ts b/__tests__/frontend/destination-selection-unknown-error.spec.ts index dfe76929..42e873e0 100644 --- a/__tests__/frontend/destination-selection-unknown-error.spec.ts +++ b/__tests__/frontend/destination-selection-unknown-error.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/move-api-error.spec.ts b/__tests__/frontend/move-api-error.spec.ts index 59bab003..f7dc138b 100644 --- a/__tests__/frontend/move-api-error.spec.ts +++ b/__tests__/frontend/move-api-error.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/move-folders-equal-error.spec.ts b/__tests__/frontend/move-folders-equal-error.spec.ts index 9c1c50cc..74ad5f34 100644 --- a/__tests__/frontend/move-folders-equal-error.spec.ts +++ b/__tests__/frontend/move-folders-equal-error.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/move-repeat-after-timeout.spec.ts b/__tests__/frontend/move-repeat-after-timeout.spec.ts index e2f314f7..7a8e3910 100644 --- a/__tests__/frontend/move-repeat-after-timeout.spec.ts +++ b/__tests__/frontend/move-repeat-after-timeout.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/move-unhandled-error.spec.ts b/__tests__/frontend/move-unhandled-error.spec.ts index 1427a8f5..fe73c820 100644 --- a/__tests__/frontend/move-unhandled-error.spec.ts +++ b/__tests__/frontend/move-unhandled-error.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/move-unknown-error.spec.ts b/__tests__/frontend/move-unknown-error.spec.ts index 8e759b07..fd0e6bd5 100644 --- a/__tests__/frontend/move-unknown-error.spec.ts +++ b/__tests__/frontend/move-unknown-error.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/navigation.spec.ts b/__tests__/frontend/navigation.spec.ts index 714da46f..a1712f00 100644 --- a/__tests__/frontend/navigation.spec.ts +++ b/__tests__/frontend/navigation.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/non-empty.spec.ts b/__tests__/frontend/non-empty.spec.ts index c6a76db1..0267b198 100644 --- a/__tests__/frontend/non-empty.spec.ts +++ b/__tests__/frontend/non-empty.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/source-destination-selection.spec.ts b/__tests__/frontend/source-destination-selection.spec.ts index 8f3235e7..699b7fba 100644 --- a/__tests__/frontend/source-destination-selection.spec.ts +++ b/__tests__/frontend/source-destination-selection.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/source-selection-api-error.spec.ts b/__tests__/frontend/source-selection-api-error.spec.ts index 4dcd3137..8510dd2c 100644 --- a/__tests__/frontend/source-selection-api-error.spec.ts +++ b/__tests__/frontend/source-selection-api-error.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/source-selection-unhandled-error.spec.ts b/__tests__/frontend/source-selection-unhandled-error.spec.ts index 23140c9b..48d5e684 100644 --- a/__tests__/frontend/source-selection-unhandled-error.spec.ts +++ b/__tests__/frontend/source-selection-unhandled-error.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/source-selection-unknown-error.spec.ts b/__tests__/frontend/source-selection-unknown-error.spec.ts index 1479b1af..b823510f 100644 --- a/__tests__/frontend/source-selection-unknown-error.spec.ts +++ b/__tests__/frontend/source-selection-unknown-error.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/__tests__/frontend/success-with-errors.spec.ts b/__tests__/frontend/success-with-errors.spec.ts index 99e4446c..4d6783e0 100644 --- a/__tests__/frontend/success-with-errors.spec.ts +++ b/__tests__/frontend/success-with-errors.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from "@playwright/test"; +import { expect, test } from "playwright-test-coverage"; import { setup } from "../test-utils/stub-endpoints"; diff --git a/package-lock.json b/package-lock.json index eac755df..b6f42c56 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,6 +43,7 @@ "jest": "^28.0.0", "npm-run-all": "^4.1.5", "playwright": "^1.39.0", + "playwright-test-coverage": "^1.2.12", "prettier": "^3.0.3", "prettier-plugin-svelte": "^3.0.3", "rimraf": "^5.0.5", @@ -17453,6 +17454,15 @@ "node": ">=16" } }, + "node_modules/playwright-test-coverage": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/playwright-test-coverage/-/playwright-test-coverage-1.2.12.tgz", + "integrity": "sha512-WdR3shV+7IWtlB1AZcXSysUyZmyAqXM9+DT3iBSS1p4SkJoWZslkTqk04l5ZExSkuaM+5fKl0M9TyUuJWuGgLA==", + "dev": true, + "peerDependencies": { + "@playwright/test": "^1.14.1" + } + }, "node_modules/plugin-error": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", diff --git a/package.json b/package.json index dec371bc..05685073 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "jest": "^28.0.0", "npm-run-all": "^4.1.5", "playwright": "^1.39.0", + "playwright-test-coverage": "^1.2.12", "prettier": "^3.0.3", "prettier-plugin-svelte": "^3.0.3", "rimraf": "^5.0.5",