test(frontend): fix lint typing in UserMenu test link mock

This commit is contained in:
Abhimanyu Saharan
2026-02-12 19:51:36 +00:00
committed by Abhimanyu Saharan
parent d739e31196
commit 3dca0fa813

View File

@@ -16,7 +16,15 @@ vi.mock("next/image", () => ({
}));
vi.mock("next/link", () => ({
default: ({ children, href, ...rest }: any) => (
default: ({
children,
href,
...rest
}: {
children: React.ReactNode;
href?: string;
[key: string]: unknown;
}) => (
<a href={typeof href === "string" ? href : "#"} {...rest}>
{children}
</a>