import { playwright } from '@vitest/browser-playwright'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vitest/config'

export default defineConfig({
  cacheDir: fileURLToPath(new URL("./node_modules/.vite", import.meta.url)),
  test: {
    include: ['basic.test.ts', 'math.test.ts'],
    api: 7523,
    browser: {
      instances: [{ browser: 'chromium' }],
      provider: playwright(),
      headless: true,
    }
  },
})
