From dd47e746701405b060551ec16bb1b85c8fec2a83 Mon Sep 17 00:00:00 2001 From: gnezim Date: Thu, 16 Apr 2026 23:36:41 +0300 Subject: [PATCH] Fix Link mock typing in FlightsMiniList test --- .../components/FlightsMiniList/FlightsMiniList.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/online-board/components/FlightsMiniList/FlightsMiniList.test.tsx b/src/features/online-board/components/FlightsMiniList/FlightsMiniList.test.tsx index fbc9b540..532fff3e 100644 --- a/src/features/online-board/components/FlightsMiniList/FlightsMiniList.test.tsx +++ b/src/features/online-board/components/FlightsMiniList/FlightsMiniList.test.tsx @@ -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( + Link: forwardRef & { to: string }>( ({ children, to, ...props }, ref) => ( {children} ),