forked from Qortal/q-blog
16 lines
423 B
TypeScript
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();
|
|
});
|
|
});
|