import { defineConfig } from 'vitest/config';

export default defineConfig({
  test: {
    // Enable test globals (describe, it, expect without imports)
    globals: true,
    env: {
      CW_LOG_LEVEL: 'silent',
    },
    // Test file pattern
    include: ['**/*.test.ts'],
    exclude: ['**/node_modules/**', '**/dist/**', 'apps/web/**', 'packages/**'],
    // TypeScript support uses tsconfig.json automatically
    // Coverage reporter (optional, for future use)
    coverage: {
      provider: 'v8',
      reporter: ['text', 'json', 'html'],
      reportsDirectory: './apps/server/coverage',
    },
  },
});
