mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
98e36aa036
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,
|
|
});
|