This repository has been archived on 2024-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
p61-project/app/(pages)/__tests__/index.test.tsx

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()
})
})