| 12345678910111213141516171819202122232425 |
- 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<T>() {
- return { chatId: '-100' } as T;
- }
- export function Link({ children }: { children: ReactNode }) {
- return <>{children}</>;
- }
|