mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
456 B
TypeScript
21 lines
456 B
TypeScript
import { configureAxe, axe, toHaveNoViolations, JestAxe } from "jest-axe";
|
|
|
|
expect.extend(toHaveNoViolations);
|
|
|
|
const newJestWithDefaults: JestAxe = configureAxe();
|
|
|
|
const newJestWithOptions: JestAxe = configureAxe({
|
|
elementRef: false,
|
|
iframes: false,
|
|
rules: {},
|
|
runOnly: {
|
|
type: "rules",
|
|
},
|
|
selectors: false,
|
|
});
|
|
|
|
const sameJest: JestAxe = axe;
|
|
|
|
expect("").toHaveNoViolations();
|
|
expect(document.body).toHaveNoViolations();
|