import { vi } from 'vitest';
import { mockLogger } from '../utils/mockLogger';

// Globally mock the logger service so individual test files don't have to.
// This ensures 'import { logger } from ...' always returns the mock.
// IMPORTANT: Must also export createScopedLogger as it's used by aiService.server.ts
vi.mock('../../services/logger.server', () => ({
  logger: mockLogger,
  createScopedLogger: vi.fn(() => mockLogger),
}));
