test: enforce accessibility quality gates
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user