mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
As proposed in #22343, the components can be automatically validated for accessibility. This adds a test helper that runs Axe to check for accessibility violations.
8 lines
198 B
TypeScript
8 lines
198 B
TypeScript
import { toHaveNoViolations } from 'jest-axe';
|
|
import toMatchRenderedSnapshot from './matchers/rendered-snapshot';
|
|
|
|
expect.extend(toHaveNoViolations);
|
|
expect.extend({
|
|
toMatchRenderedSnapshot,
|
|
});
|