Merge pull request #1184 from shlinkio/dependabot/npm_and_yarn/axe-core-4.9.1

Bump axe-core from 4.9.0 to 4.9.1
This commit is contained in:
Alejandro Celaya 2024-05-13 19:14:15 +02:00 committed by GitHub
commit 281c148e18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 10 deletions

14
package-lock.json generated
View file

@ -54,7 +54,7 @@
"@vitejs/plugin-react": "^4.2.1", "@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.6.0", "@vitest/coverage-v8": "^1.6.0",
"adm-zip": "^0.5.12", "adm-zip": "^0.5.12",
"axe-core": "^4.9.0", "axe-core": "^4.9.1",
"chalk": "^5.3.0", "chalk": "^5.3.0",
"eslint": "^8.57.0", "eslint": "^8.57.0",
"history": "^5.3.0", "history": "^5.3.0",
@ -4511,9 +4511,9 @@
} }
}, },
"node_modules/axe-core": { "node_modules/axe-core": {
"version": "4.9.0", "version": "4.9.1",
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.9.0.tgz", "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.9.1.tgz",
"integrity": "sha512-H5orY+M2Fr56DWmMFpMrq5Ge93qjNdPVqzBv5gWK3aD1OvjBEJlEzxf09z93dGVQeI0LiW+aCMIx1QtShC/zUw==", "integrity": "sha512-QbUdXJVTpvUTHU7871ppZkdOLBeGUKBQWHkHrvN2V9IQWGMt61zf3B45BtzjxEJzYuj0JBjBZP/hmYS/R9pmAw==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">=4" "node": ">=4"
@ -14151,9 +14151,9 @@
"dev": true "dev": true
}, },
"axe-core": { "axe-core": {
"version": "4.9.0", "version": "4.9.1",
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.9.0.tgz", "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.9.1.tgz",
"integrity": "sha512-H5orY+M2Fr56DWmMFpMrq5Ge93qjNdPVqzBv5gWK3aD1OvjBEJlEzxf09z93dGVQeI0LiW+aCMIx1QtShC/zUw==", "integrity": "sha512-QbUdXJVTpvUTHU7871ppZkdOLBeGUKBQWHkHrvN2V9IQWGMt61zf3B45BtzjxEJzYuj0JBjBZP/hmYS/R9pmAw==",
"dev": true "dev": true
}, },
"axobject-query": { "axobject-query": {

View file

@ -71,7 +71,7 @@
"@vitejs/plugin-react": "^4.2.1", "@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.6.0", "@vitest/coverage-v8": "^1.6.0",
"adm-zip": "^0.5.12", "adm-zip": "^0.5.12",
"axe-core": "^4.9.0", "axe-core": "^4.9.1",
"chalk": "^5.3.0", "chalk": "^5.3.0",
"eslint": "^8.57.0", "eslint": "^8.57.0",
"history": "^5.3.0", "history": "^5.3.0",

View file

@ -1,4 +1,4 @@
import { run } from 'axe-core'; import axe from 'axe-core';
type ContainerWrapper = { container: HTMLElement }; type ContainerWrapper = { container: HTMLElement };
@ -6,7 +6,7 @@ type AccessibilityTestSubject = ContainerWrapper | Promise<ContainerWrapper>;
export const checkAccessibility = async (subject: AccessibilityTestSubject) => { export const checkAccessibility = async (subject: AccessibilityTestSubject) => {
const { container } = await subject; const { container } = await subject;
const { violations } = await run(container); const { violations } = await axe.run(container);
expect(violations).toStrictEqual([]); expect(violations).toStrictEqual([]);
}; };