Files
q-blog/tests/axe-smoke.test.tsx
2025-08-21 16:40:49 -04:00

16 lines
423 B
TypeScript

import { describe, it, expect } from 'vitest';
import { render } from '@testing-library/react';
import { axe } from 'jest-axe';
function Hello() {
return <button aria-pressed="false">Hi</button>;
}
describe('a11y smoke', () => {
it('has no detectable violations', async () => {
const { container } = render(<Hello />);
const results = await axe(container);
expect(results).toHaveNoViolations();
});
});