Files
community-rule/tests/e2e/axe.ts
T
2025-08-28 21:17:27 -06:00

6 lines
253 B
TypeScript

import { injectAxe, checkA11y } from '@axe-core/playwright';
export async function runA11y(page, options = {}) {
await injectAxe(page);
await checkA11y(page, undefined, { detailedReport: true, detailedReportOptions: { html: true }, ...options });
}