fix(web): add next/navigation mock to AppShell test after client component conversion

This commit is contained in:
saravanakumardb1 2026-03-29 00:09:55 -07:00
parent 89edf59a4e
commit d3bfc0c538

View File

@ -2,6 +2,10 @@ import { render, screen } from "@testing-library/react";
import { describe, expect, it, vi } from "vitest";
import { AppShell } from "./AppShell";
vi.mock("next/navigation", () => ({
usePathname: () => "/dashboard",
}));
vi.mock("@/components/Sidebar", () => ({
Sidebar: () => <div data-testid="sidebar">Sidebar</div>,
}));