import { defineConfig } from 'vitest/config';

export default defineConfig({
  test: {
    globals: true,
    environment: 'node',
    include: [
      'tests/unit/**/*.test.ts',
      'tests/integration/**/*.test.ts',
      'tests/interop/**/*.test.ts',
      'tests/compliance/**/*.test.ts',
      'tests/docs/**/*.test.ts',
    ],
    exclude: [
      'tests/e2e/**',
    ],
    coverage: {
      provider: 'v8',
      reporter: ['text', 'json', 'html'],
      include: ['src/**/*.ts'],
      exclude: [
        'node_modules/',
        'tests/',
        'dist/',
        '**/*.d.ts',
        'src/cli/**', // CLI tested via E2E
      ],
    },
    testTimeout: 10000,
    hookTimeout: 10000,
  },
});
