From 679bf4dd3a742c11ded6ef3ec301d988f7ef0215 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 11 May 2024 07:25:20 +0000 Subject: [PATCH 1/2] Bump axe-core from 4.9.0 to 4.9.1 Bumps [axe-core](https://github.com/dequelabs/axe-core) from 4.9.0 to 4.9.1. - [Release notes](https://github.com/dequelabs/axe-core/releases) - [Changelog](https://github.com/dequelabs/axe-core/blob/develop/CHANGELOG.md) - [Commits](https://github.com/dequelabs/axe-core/compare/v4.9.0...v4.9.1) --- updated-dependencies: - dependency-name: axe-core dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 00c5d158..00e2422b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -54,7 +54,7 @@ "@vitejs/plugin-react": "^4.2.1", "@vitest/coverage-v8": "^1.6.0", "adm-zip": "^0.5.12", - "axe-core": "^4.9.0", + "axe-core": "^4.9.1", "chalk": "^5.3.0", "eslint": "^8.57.0", "history": "^5.3.0", @@ -4511,9 +4511,9 @@ } }, "node_modules/axe-core": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.9.0.tgz", - "integrity": "sha512-H5orY+M2Fr56DWmMFpMrq5Ge93qjNdPVqzBv5gWK3aD1OvjBEJlEzxf09z93dGVQeI0LiW+aCMIx1QtShC/zUw==", + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.9.1.tgz", + "integrity": "sha512-QbUdXJVTpvUTHU7871ppZkdOLBeGUKBQWHkHrvN2V9IQWGMt61zf3B45BtzjxEJzYuj0JBjBZP/hmYS/R9pmAw==", "dev": true, "engines": { "node": ">=4" @@ -14151,9 +14151,9 @@ "dev": true }, "axe-core": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.9.0.tgz", - "integrity": "sha512-H5orY+M2Fr56DWmMFpMrq5Ge93qjNdPVqzBv5gWK3aD1OvjBEJlEzxf09z93dGVQeI0LiW+aCMIx1QtShC/zUw==", + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.9.1.tgz", + "integrity": "sha512-QbUdXJVTpvUTHU7871ppZkdOLBeGUKBQWHkHrvN2V9IQWGMt61zf3B45BtzjxEJzYuj0JBjBZP/hmYS/R9pmAw==", "dev": true }, "axobject-query": { diff --git a/package.json b/package.json index 9b13670a..b7a3f3e1 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "@vitejs/plugin-react": "^4.2.1", "@vitest/coverage-v8": "^1.6.0", "adm-zip": "^0.5.12", - "axe-core": "^4.9.0", + "axe-core": "^4.9.1", "chalk": "^5.3.0", "eslint": "^8.57.0", "history": "^5.3.0", From e350412f0daefa03b16cc627efb98edf20a6ac92 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 13 May 2024 19:10:55 +0200 Subject: [PATCH 2/2] Import full axe object to work around https://github.com/dequelabs/axe-core/issues/4458 --- test/__helpers__/accessibility.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/__helpers__/accessibility.ts b/test/__helpers__/accessibility.ts index e2fd80e0..9378b66f 100644 --- a/test/__helpers__/accessibility.ts +++ b/test/__helpers__/accessibility.ts @@ -1,4 +1,4 @@ -import { run } from 'axe-core'; +import axe from 'axe-core'; type ContainerWrapper = { container: HTMLElement }; @@ -6,7 +6,7 @@ type AccessibilityTestSubject = ContainerWrapper | Promise; export const checkAccessibility = async (subject: AccessibilityTestSubject) => { const { container } = await subject; - const { violations } = await run(container); + const { violations } = await axe.run(container); expect(violations).toStrictEqual([]); };