import { defineConfig } from 'vitest/config'

export default defineConfig({
  test: {
    coverage: {
      provider: 'v8' as const,
      reporter: ['text', 'lcov', 'json-summary'],
      reportsDirectory: './coverage',
      include: ['packages/*/src/**/*.ts'],
      exclude: [
        '**/*.spec.ts',
        '**/*.test.ts',
        '**/*.bench.ts',
        '**/spec/**',
        '**/index.ts',
        '**/*.d.ts',
      ],
    },
    globals: true,
    watch: false,
    projects: [
      {
        test: {
          name: 'node',
          environment: 'node',
          include: ['packages/*/src/spec/**/*.spec.ts'],
        },
      },
    ],
  },
})
