Last active
March 9, 2021 14:12
-
-
Save tidusia/f9f29bb8e4c83e4f90bbb353284fff09 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 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