Fix Link mock typing in FlightsMiniList test
This commit is contained in:
@@ -8,7 +8,7 @@ import type { ISimpleFlight } from "../../types.js";
|
||||
// Match the router mock convention used across the project.
|
||||
// Forward the ref so parent-held refs to list items still resolve to DOM nodes.
|
||||
vi.mock("@modern-js/runtime/router", () => ({
|
||||
Link: forwardRef<HTMLAnchorElement, { children: React.ReactNode; to: string; [k: string]: unknown }>(
|
||||
Link: forwardRef<HTMLAnchorElement, React.AnchorHTMLAttributes<HTMLAnchorElement> & { to: string }>(
|
||||
({ children, to, ...props }, ref) => (
|
||||
<a ref={ref} href={to} {...props}>{children}</a>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user