15 lines
312 B
TypeScript
15 lines
312 B
TypeScript
import renderer from "react-test-renderer"
|
|
|
|
import HomePage from "@/app/(pages)/index"
|
|
|
|
describe("<HomePage />", () => {
|
|
beforeEach(async () => {
|
|
jest.clearAllMocks()
|
|
})
|
|
|
|
it("renders correctly", () => {
|
|
const tree = renderer.create(<HomePage />).toJSON()
|
|
expect(tree).toMatchSnapshot()
|
|
})
|
|
})
|