import { defineConfig } from 'vitest/config';

export default defineConfig({
  test: {
    environment: 'node',
    include: ['src/**/*.test.{ts,tsx}'],
    setupFiles: ['src/test/setup.ts'],
    environmentMatchGlobs: [
      ['src/api/**', 'happy-dom'],
      ['src/context/**', 'happy-dom'],
      ['src/hooks/**', 'happy-dom'],
      ['src/pages/**', 'happy-dom'],
      ['src/components/**', 'happy-dom'],
      ['src/App.test.tsx', 'happy-dom'],
      ['src/help/fleetGroups.test.ts', 'happy-dom'],
    ],
  },
});
