import renderer from "react-test-renderer" import { ButtonCustom } from "@/components/ButtonCustom" describe("", () => { it("renders correctly", () => { const tree = renderer .create(Awesome Button!) .toJSON() expect(tree).toMatchSnapshot() }) })