test: enforce accessibility quality gates

This commit is contained in:
ik
2026-09-07 09:12:30 +07:00
parent fec830879b
commit d69ad9c01d
7 changed files with 1189 additions and 13 deletions
+6 -2
View File
@@ -10,7 +10,9 @@
"check": "astro check",
"test:unit": "node --test tests/unit/*.test.ts",
"test:e2e": "playwright test",
"test:bootstrap": "playwright test tests/production-bootstrap.spec.ts"
"test:bootstrap": "playwright test tests/production-bootstrap.spec.ts",
"audit:axe": "playwright test tests/accessibility.spec.ts",
"audit:lighthouse": "lighthouse http://127.0.0.1:4321 --quiet --chrome-flags='--headless --no-sandbox' --only-categories=performance,accessibility --output=json --output-path=./lighthouse-report.json"
},
"dependencies": {
"@astrojs/check": "^0.9.10",
@@ -20,6 +22,8 @@
"typescript": "^6.0.0"
},
"devDependencies": {
"@types/node": "^26.4.1"
"@axe-core/playwright": "^4.13.0",
"@types/node": "^26.4.1",
"lighthouse": "^13.4.1"
}
}