@dargmuesli/nuxt-vio-testing 21.0.13 → 21.0.15

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
-
3
2
  //#region e2e/fixtures/vioTest.d.ts
4
3
  declare const createDefaultPage: (page: Page) => {
5
4
  page: Page;
@@ -1,11 +1,7 @@
1
1
  import { Page } from "playwright-core";
2
-
3
2
  //#region e2e/utils/constants.d.ts
4
3
  declare const TIMEOUT = 60000;
5
- declare const PAGE_READY: ({
6
- page,
7
- options
8
- }: {
4
+ declare const PAGE_READY: ({ page, options }: {
9
5
  page: Page;
10
6
  options?: {
11
7
  cookieControl?: boolean;
@@ -1,12 +1,7 @@
1
1
  import { Page } from "@playwright/test";
2
-
3
2
  //#region e2e/utils/tests.d.ts
4
3
  declare const testA11y: (url: string) => void;
5
- declare const testMetadata: ({
6
- page,
7
- path,
8
- title
9
- }: {
4
+ declare const testMetadata: ({ page, path, title }: {
10
5
  page: Page;
11
6
  path: string;
12
7
  title: string;
@@ -428,7 +428,7 @@ const testMetadata = async ({ page, path, title }) => {
428
428
  }
429
429
  ];
430
430
  for (const object of meta) await expect(page.locator(object.tag + object.attributes?.map((attribute) => `[${attribute.key}="${attribute.value}"]`).join(""))).toBeAttached();
431
- expect((await page.locator("script[data-hid=\"schema-org-graph\"]").innerText()).replaceAll(SITE_URL, "https://example.com")).toMatchSnapshot(`schema-org-graph.json`);
431
+ expect((await page.locator("script[data-hid=\"schema-org-graph\"]").innerText()).replaceAll(SITE_URL, "https://example.com")).toMatchSnapshot(`schema-org-graph-${process.env.VIO_SERVER}.json`);
432
432
  };
433
433
  const testOgImage = (paths) => vioTest.describe("visual regression", () => {
434
434
  vioTest("generates the open graph image", async ({ page }) => {
package/package.json CHANGED
@@ -4,16 +4,16 @@
4
4
  "@eslint/js": "10.0.1",
5
5
  "@playwright/test": "1.61.1",
6
6
  "@types/lodash-es": "4.17.12",
7
- "@types/node": "24.13.2",
7
+ "@types/node": "24.13.3",
8
8
  "cross-env": "10.1.0",
9
- "eslint": "10.6.0",
9
+ "eslint": "10.7.0",
10
10
  "eslint-config-prettier": "10.1.8",
11
11
  "eslint-plugin-prettier": "5.5.6",
12
12
  "lodash-es": "4.18.1",
13
13
  "playwright-core": "1.61.1",
14
- "tsdown": "0.22.3",
14
+ "tsdown": "0.22.9",
15
15
  "typescript": "6.0.3",
16
- "typescript-eslint": "8.62.0",
16
+ "typescript-eslint": "8.64.0",
17
17
  "ufo": "1.6.4"
18
18
  },
19
19
  "engines": {
@@ -56,7 +56,7 @@
56
56
  "url": "git+https://github.com/dargmuesli/vio.git"
57
57
  },
58
58
  "type": "module",
59
- "version": "21.0.13",
59
+ "version": "21.0.15",
60
60
  "scripts": {
61
61
  "build": "tsdown",
62
62
  "build:watch": "tsdown --watch",