mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-19 05:54:06 +01:00
18 lines
470 B
TypeScript
18 lines
470 B
TypeScript
import { render } from "@testing-library/react";
|
|
|
|
import Home from "@/app/page";
|
|
|
|
// Mock Cookies
|
|
jest.mock("next/headers", () => ({
|
|
cookies: jest.fn(() => ({
|
|
getAll: jest.fn(() => [{ name: "test", value: "cookieValue" }]), // Simulate returning cookies
|
|
setAll: jest.fn(), // Simulate setAll method
|
|
})),
|
|
}));
|
|
|
|
// Homepage
|
|
describe("Homepage", () => {
|
|
it("Home Page should render without crashing", async () => {
|
|
render(await Home());
|
|
});
|
|
}); |