ant-design/tests/setupAfterEnv.ts
Stef Schenkelaars 98e36aa036
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.
2021-12-02 13:43:24 +01:00

8 lines
198 B
TypeScript

import { toHaveNoViolations } from 'jest-axe';
import toMatchRenderedSnapshot from './matchers/rendered-snapshot';
expect.extend(toHaveNoViolations);
expect.extend({
toMatchRenderedSnapshot,
});