mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
test: add test helper for accessibility
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.
This commit is contained in:
1
typings/jest.d.ts
vendored
1
typings/jest.d.ts
vendored
@@ -1,5 +1,6 @@
|
||||
declare namespace jest {
|
||||
interface Matchers<R> {
|
||||
toMatchRenderedSnapshot(): R;
|
||||
toHaveNoViolations(): R;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user