import '@angular/compiler';
import '@analogjs/vitest-angular/setup-zone';

import {
  BrowserTestingModule,
  platformBrowserTesting,
} from '@angular/platform-browser/testing';
import { getTestBed } from '@angular/core/testing';

// Mock browser APIs that are not available in test environment
global.URL = global.URL || {
  createObjectURL: () => 'mocked-object-url',
  revokeObjectURL: () => {},
} as any;

getTestBed().initTestEnvironment(
  BrowserTestingModule,
  platformBrowserTesting(),
);
