Browse Source

💄 style(test-utils): add type ignore comments for Route components

- add @ts-ignore comment for mapped Route components
- add @ts-ignore comment for catch-all Route component
yourname 1 month ago
parent
commit
309bef2ad4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/test-utils/src/client/test-router.tsx

+ 2 - 0
packages/test-utils/src/client/test-router.tsx

@@ -18,8 +18,10 @@ export function TestRouter({
     <MemoryRouter initialEntries={[initialPath]}>
     <MemoryRouter initialEntries={[initialPath]}>
       <Routes>
       <Routes>
         {routes.map((route, index) => (
         {routes.map((route, index) => (
+          // @ts-ignore
           <Route key={index} path={route.path} element={route.element} />
           <Route key={index} path={route.path} element={route.element} />
         ))}
         ))}
+        {/* @ts-ignore */}
         <Route path="*" element={children} />
         <Route path="*" element={children} />
       </Routes>
       </Routes>
     </MemoryRouter>
     </MemoryRouter>