import { vi } from 'vitest';

// src/test-utils/mocks/workos.ts
var mockWorkOSUser = {
  id: "user_123",
  email: "test@example.com",
  firstName: "Test",
  lastName: "User",
  emailVerified: true,
  profilePictureUrl: null,
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
};
var mockUseAuth = {
  user: null,
  isLoading: false,
  signIn: vi.fn(),
  signOut: vi.fn(),
  getAccessToken: vi.fn().mockResolvedValue("mock-access-token"),
  organizationId: "test-org-id",
  canRecover: vi.fn(() => false)
};
function createMockUseAuth(overrides = {}) {
  return {
    ...mockUseAuth,
    ...overrides
  };
}
var mockAuthenticatedUser = () => createMockUseAuth({
  user: mockWorkOSUser,
  isLoading: false
});
var mockUnauthenticatedUser = () => createMockUseAuth({
  user: null,
  isLoading: false
});
var mockAuthLoading = () => createMockUseAuth({
  user: null,
  isLoading: true
});

export { createMockUseAuth, mockAuthLoading, mockAuthenticatedUser, mockUnauthenticatedUser, mockUseAuth, mockWorkOSUser };
