diff --git a/package-lock.json b/package-lock.json index afacd03a..866ca0ae 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 fd135ac1..8cfe8e42 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", 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([]); };