fix(web): add next/navigation mock to AppShell test after client component conversion
This commit is contained in:
parent
89edf59a4e
commit
d3bfc0c538
@ -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>,
|
||||
}));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user