Skip to content

Instantly share code, notes, and snippets.

@tidusia
Last active March 9, 2021 14:12
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/f9f29bb8e4c83e4f90bbb353284fff09 to your computer and use it in GitHub Desktop.
Save tidusia/f9f29bb8e4c83e4f90bbb353284fff09 to your computer and use it in GitHub Desktop.
import React from "react";
import { render } from "@testing-library/react";
import { Props } from ".";
import { Default } from "./index.stories";
describe("COMPONENT_NAME", () => {
describe("Default", () => {
const props = Default.args as Props;
test("should match snapshot", () => {
const { container } = render(<Default {...props} />);
expect(container).toMatchSnapshot();
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment