1
1
mirror of https://github.com/theoludwig/p61-project.git synced 2024-07-17 07:00:12 +02:00
p61-project/app/(pages)/__tests__/index.test.tsx

15 lines
312 B
TypeScript
Raw Normal View History

2024-02-16 22:51:50 +01:00
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()
})
})