import type { ReactNode } from 'react'; import { vi } from 'vitest'; export const history = { push: vi.fn(), replace: vi.fn(), }; export const mockLocation = { pathname: '/dashboard', search: '' }; export function Outlet() { return null; } export function useLocation() { return mockLocation; } export function useParams() { return { chatId: '-100' } as T; } export function Link({ children }: { children: ReactNode }) { return <>{children}; }