chore(frontend-tests): fix lint in next/link mock

This commit is contained in:
Riya
2026-02-07 15:55:25 +00:00
parent 16f58af0c2
commit f3ae10da26

View File

@@ -7,8 +7,13 @@ import { AuthProvider } from "@/components/providers/AuthProvider";
import { QueryProvider } from "@/components/providers/QueryProvider";
vi.mock("next/link", () => {
type LinkProps = React.PropsWithChildren<{
href: string | { pathname?: string };
}> &
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href">;
return {
default: ({ href, children, ...props }: any) => (
default: ({ href, children, ...props }: LinkProps) => (
<a href={typeof href === "string" ? href : "#"} {...props}>
{children}
</a>