import { setupBrowserMocks } from '../chunk-HJ4CJIWN.js';
import { mockUseAuth } from '../chunk-DRQPEMJI.js';
import '../chunk-I2KLQ2HA.js';
import '@testing-library/jest-dom/vitest';
import { cleanup } from '@testing-library/react';
import { vi, afterEach } from 'vitest';

setupBrowserMocks();
vi.mock("@workos-inc/authkit-react", () => ({
  useAuth: () => mockUseAuth
}));
vi.mock("@elevasis/ui/auth/context", () => ({
  useAuthContext: () => mockUseAuth,
  AuthProvider: ({ children }) => children
}));
vi.mock("@elevasis/ui/router/context", () => ({
  useRouterContext: () => ({
    currentPath: "/",
    navigate: vi.fn(),
    Link: "a"
  }),
  RouterProvider: ({ children }) => children
}));
afterEach(() => {
  cleanup();
});
