import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vitest/config'
import { instances, provider } from '../../settings'

export default defineConfig({
  cacheDir: fileURLToPath(new URL("./node_modules/.vite", import.meta.url)),
  test: {
    isolate: false,
    setupFiles: ['./browser-setup.ts'],
    browser: {
      enabled: true,
      provider,
      instances,
      headless: false,
    },
  },
})
