Skip to content

Instantly share code, notes, and snippets.

@tidusia
Last active March 23, 2021 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tidusia/53c0bd56241086a8b45009bda96b1c6d to your computer and use it in GitHub Desktop.
Save tidusia/53c0bd56241086a8b45009bda96b1c6d to your computer and use it in GitHub Desktop.
test("should be accessible and match snapshot", async () => {
const { container } = render(<Default {...props} />);
expect(await axe(container)).toHaveNoViolations();
expect(container.firstChild).toMatchSnapshot();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment