import { defineConfig } from 'vitest/config';

export default defineConfig({
  test: {
    globals: true,
    environment: 'node',
    testTimeout: 30_000,
    coverage: {
      provider: 'v8',
      include: ['src/commands/skill.ts', 'src/lease-broker/broker-test-client.ts'],
      reporter: ['text', 'json-summary'],
      thresholds: {
        perFile: true,
        statements: 85,
        branches: 85,
        functions: 85,
        lines: 85,
      },
    },
  },
});
