mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-19 05:54:06 +01:00
29 lines
980 B
TypeScript
29 lines
980 B
TypeScript
import { render } from "@testing-library/react";
|
|
|
|
// Pages - User
|
|
import Notification from "@/app/(user)/notification/page";
|
|
import ProfilePage from "@/app/(user)/profile/[uid]/page";
|
|
import EditProfileForm from "@/app/(user)/profile/[uid]/edit/EditProfileForm";
|
|
|
|
// 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
|
|
})),
|
|
}));
|
|
|
|
// User Pages
|
|
describe("User Pages", () => {
|
|
// it("Notification Page should render without crashing", async () => {
|
|
// render(await Notification());
|
|
// });
|
|
|
|
// it("Profile Page should render without crashing", async () => {
|
|
// render(await ProfilePage({ params: { uid: "user-id" } }));
|
|
// });
|
|
|
|
// it("Edit Profile Form should render without crashing", async () => {
|
|
// render(await EditProfileForm({ params: { uid: "user-id" } }));
|
|
// });
|
|
}); |