From 6a88112c851b11c27cc5d551c109ea6f58a27b8d Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Tue, 17 Mar 2026 10:34:40 +0100 Subject: [PATCH] Fix dummy test router --- frontend/src/test-utils/router.tsx | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/frontend/src/test-utils/router.tsx b/frontend/src/test-utils/router.tsx index 0a312899a..a6faa924b 100644 --- a/frontend/src/test-utils/router.tsx +++ b/frontend/src/test-utils/router.tsx @@ -9,9 +9,7 @@ import { createRootRoute, createRoute, createRouter, - matchContext, RouterContextProvider, - useRouterState, } from "@tanstack/react-router"; const rootRoute = createRootRoute(); @@ -27,22 +25,6 @@ const router = createRouter({ }); router.load(); -const InnerProvider: React.FC = ({ children }) => { - const matchId = useRouterState({ - select: (s) => { - return s.matches[0]?.id; - }, - }); - - return ( - {children} - ); -}; - export const DummyRouter: React.FC = ({ children, -}) => ( - - {children} - -); +}) => {children};