@dargmuesli/nuxt-vio-testing 23.1.4 → 23.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,4 @@
1
1
  import { Page } from "@playwright/test";
2
- //#region e2e/fixtures/vioTest.d.ts
3
2
  declare const createDefaultPage: (page: Page) => {
4
3
  page: Page;
5
4
  goto: (url: string, options?: {
@@ -11,5 +10,4 @@ export declare const vioTest: import("@playwright/test").TestType<import("@playw
11
10
  defaultPage: ReturnType<typeof createDefaultPage>;
12
11
  _autoSnapshotSuffix: unknown;
13
12
  }, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions>;
14
- //#endregion
15
13
  export {};
@@ -1,5 +1,5 @@
1
1
  import { expect, test } from "@playwright/test";
2
- //#region e2e/fixtures/vioTest.ts
2
+ // e2e/fixtures/vioTest.ts
3
3
  const createDefaultPage = (page) => {
4
4
  return {
5
5
  page,
@@ -32,5 +32,4 @@ const vioTest = test.extend({ defaultPage: async ({ page, context }, use) => {
32
32
  ]);
33
33
  await use(createDefaultPage(page));
34
34
  } });
35
- //#endregion
36
35
  export { vioTest };
@@ -1,5 +1,4 @@
1
1
  import { Page } from "playwright-core";
2
- //#region e2e/utils/constants.d.ts
3
2
  export declare const TIMEOUT = 60000;
4
3
  export declare const PAGE_READY: ({ page, options }: {
5
4
  page: Page;
@@ -9,5 +8,4 @@ export declare const PAGE_READY: ({ page, options }: {
9
8
  isLoading?: boolean;
10
9
  };
11
10
  }) => Promise<void>;
12
- export declare const SITE_URL: string;
13
- //#endregion
11
+ export declare const SITE_URL: string;
@@ -1,10 +1,9 @@
1
1
  import { expect } from "@playwright/test";
2
- //#region e2e/utils/constants.ts
2
+ // e2e/utils/constants.ts
3
3
  const TIMEOUT = 6e4;
4
4
  const PAGE_READY = async ({ page, options }) => {
5
5
  if (!options || options.cookieControl !== false) await expect(page.getByRole("button", { name: "Cookie control" })).toBeVisible();
6
6
  if (!options || options.isLoading !== false) await expect(page.getByTestId("is-loading")).toHaveAttribute("data-is-loading", "false");
7
7
  };
8
8
  const SITE_URL = process.env.NUXT_PUBLIC_I18N_BASE_URL || `https://${process.env.HOST || "app.localhost"}:${process.env.PORT || "3000"}`;
9
- //#endregion
10
9
  export { PAGE_READY, SITE_URL, TIMEOUT };
@@ -1,5 +1,4 @@
1
1
  import { Page } from "@playwright/test";
2
- //#region e2e/utils/tests.d.ts
3
2
  export declare const testA11y: (url: string) => void;
4
3
  export declare const testMetadata: ({ page, path, title }: {
5
4
  page: Page;
@@ -11,5 +10,4 @@ export declare const testOgImage: (paths: {
11
10
  de: string;
12
11
  }) => void;
13
12
  export declare const testPageLoad: (url: string, status?: number) => void;
14
- export declare const testVisualRegression: (url: string, plain?: boolean) => void;
15
- //#endregion
13
+ export declare const testVisualRegression: (url: string, plain?: boolean) => void;
@@ -3,7 +3,7 @@ import { vioTest } from "../fixtures/vioTest.mjs";
3
3
  import { expect } from "@playwright/test";
4
4
  import AxeBuilder from "@axe-core/playwright";
5
5
  import { withoutTrailingSlash } from "ufo";
6
- //#region e2e/utils/tests.ts
6
+ // e2e/utils/tests.ts
7
7
  const testA11y = (url) => vioTest.describe("a11y", () => {
8
8
  vioTest("should not have any automatically detectable accessibility issues", async ({ defaultPage }) => {
9
9
  await defaultPage.goto(url);
@@ -435,5 +435,4 @@ const testVisualRegression = (url, plain) => vioTest.describe("visual regression
435
435
  await expect(plain ? page : defaultPage.page).toHaveScreenshot({ timeout: TIMEOUT });
436
436
  });
437
437
  });
438
- //#endregion
439
438
  export { testA11y, testMetadata, testOgImage, testPageLoad, testVisualRegression };
@@ -1,4 +1,3 @@
1
- //#region playwright.config.d.ts
2
1
  /**
3
2
  * Read environment variables from file.
4
3
  * https://github.com/motdotla/dotenv
@@ -7,5 +6,4 @@
7
6
  * See https://playwright.dev/docs/test-configuration.
8
7
  */
9
8
  declare const _default: import("@playwright/test").PlaywrightTestConfig<{}, {}>;
10
- //#endregion
11
9
  export { _default as default };
@@ -1,7 +1,7 @@
1
1
  import { SITE_URL, TIMEOUT } from "./e2e/utils/constants.mjs";
2
2
  import { defineConfig, devices } from "@playwright/test";
3
3
  import { fileURLToPath } from "node:url";
4
- //#region playwright.config.ts
4
+ // playwright.config.ts
5
5
  const VIO_SERVER = process.env.VIO_SERVER || "dev";
6
6
  const WARM_DEV_SERVER_SCRIPT = fileURLToPath(new URL("./scripts/warm-dev-server.mjs", import.meta.url));
7
7
  /**
@@ -51,5 +51,4 @@ var playwright_config_default = defineConfig({
51
51
  },
52
52
  workers: void 0
53
53
  });
54
- //#endregion
55
54
  export { playwright_config_default as default };
package/package.json CHANGED
@@ -4,20 +4,20 @@
4
4
  "@eslint/js": "10.0.1",
5
5
  "@playwright/test": "1.64.1",
6
6
  "@types/lodash-es": "4.17.12",
7
- "@types/node": "24.19.2",
7
+ "@types/node": "26.6.5",
8
8
  "cross-env": "10.1.0",
9
9
  "eslint": "10.13.0",
10
10
  "eslint-config-prettier": "10.1.8",
11
11
  "eslint-plugin-prettier": "5.5.7",
12
12
  "lodash-es": "4.18.1",
13
13
  "playwright-core": "1.64.1",
14
- "tsdown": "0.23.1",
14
+ "tsdown": "0.23.2",
15
15
  "typescript": "6.0.3",
16
- "typescript-eslint": "8.71.2",
16
+ "typescript-eslint": "8.72.1",
17
17
  "ufo": "1.6.4"
18
18
  },
19
19
  "engines": {
20
- "node": "^24.15.0"
20
+ "node": "^26.0.0"
21
21
  },
22
22
  "exports": {
23
23
  "./e2e/fixtures/vioTest": {
@@ -56,7 +56,7 @@
56
56
  "url": "git+https://github.com/dargmuesli/vio.git"
57
57
  },
58
58
  "type": "module",
59
- "version": "23.1.4",
59
+ "version": "23.1.6",
60
60
  "scripts": {
61
61
  "build": "tsdown",
62
62
  "postbuild": "node -e \"import('node:fs').then(fs=>{fs.mkdirSync('dist/scripts',{recursive:true});fs.copyFileSync('scripts/warm-dev-server.mjs','dist/scripts/warm-dev-server.mjs')})\"",