Use vitest-accessibility-checker for automated accessibility testing
main-4.xThe vitest-accessibility-checker is an automated accessibility testing plugin for Vitest that integrates the IBM Equal Access Accessibility Checker.
Key Features
- Vitest Integration: Works with Vitest's browser mode and can test React components directly using
vitest-browser-react. - Real Browser Testing: Runs tests in real browsers via Playwright.
- Custom Matchers: Provides custom Vitest matchers for clean, readable test syntax.
- Flexible Reporting: Outputs scan results in JSON, CSV, HTML, or XLSX formats.
- Baseline Support: Allows you to validate test results against captured baselines.
- Configurable Scanning: Set target rule archives, configure policies (rule sets), and define violation levels that trigger test failures or are simply reported.