Last active
March 11, 2021 13:52
-
-
Save tidusia/7a15cf26ea666240232aa84b68c51f04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { axe } from "jest-axe"; | |
test("should be accessible", async () => { | |
const { container } = render(<Component />); | |
expect(await axe(container)).toHaveNoViolations(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment