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

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

// Mock URL.createObjectURL to prevent scanner service errors
Object.defineProperty(URL, 'createObjectURL', {
  writable: true,
  value: vi.fn()
});

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