@dargmuesli/nuxt-vio-testing 22.0.1 → 22.0.3

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.
@@ -7,7 +7,8 @@ import { joinURL, withoutTrailingSlash } from "ufo";
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);
10
- expect((await new AxeBuilder({ page: defaultPage.page }).analyze()).violations.map((x) => `${x.id}\n${x.nodes.map((y) => `${y.failureSummary}\n(${y.html}\n(${y.target})`)}`).join("\n")).toEqual("");
10
+ const accessibilityScanResults = await new AxeBuilder({ page: defaultPage.page }).analyze();
11
+ expect(accessibilityScanResults.violations.map((x) => `${x.id}\n${x.nodes.map((y) => `${y.failureSummary}\n(${y.html}\n(${y.target})`)}`).join("\n")).toEqual("");
11
12
  });
12
13
  });
13
14
  const testMetadata = async ({ page, path, title }) => {
@@ -444,7 +445,8 @@ const testOgImage = (paths) => vioTest.describe("visual regression", () => {
444
445
  });
445
446
  const testPageLoad = (url, status = 200) => vioTest.describe("page load", () => {
446
447
  vioTest("loads the page successfully", async ({ request }) => {
447
- expect((await request.get(url, { headers: { Cookie: "vio_is-testing=true" } })).status()).toBe(status);
448
+ const resp = await request.get(url, { headers: { Cookie: "vio_is-testing=true" } });
449
+ expect(resp.status()).toBe(status);
448
450
  });
449
451
  });
450
452
  const testVisualRegression = (url, plain) => vioTest.describe("visual regression", () => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "devDependencies": {
3
3
  "@axe-core/playwright": "4.12.1",
4
4
  "@eslint/js": "10.0.1",
5
- "@playwright/test": "1.62.0",
5
+ "@playwright/test": "1.62.1",
6
6
  "@types/lodash-es": "4.17.12",
7
7
  "@types/node": "24.13.3",
8
8
  "cross-env": "10.1.0",
@@ -10,10 +10,10 @@
10
10
  "eslint-config-prettier": "10.1.8",
11
11
  "eslint-plugin-prettier": "5.5.6",
12
12
  "lodash-es": "4.18.1",
13
- "playwright-core": "1.62.0",
13
+ "playwright-core": "1.62.1",
14
14
  "tsdown": "0.22.14",
15
15
  "typescript": "6.0.3",
16
- "typescript-eslint": "8.65.0",
16
+ "typescript-eslint": "8.66.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": "22.0.1",
59
+ "version": "22.0.3",
60
60
  "scripts": {
61
61
  "build": "tsdown",
62
62
  "build:watch": "tsdown --watch",