vitest.config.jsโข672 B
import { defineConfig } from 'vitest/config';
export default defineConfig({
  test: {
    globals: true,
    environment: 'node',
    setupFiles: ['./test/setup.js'],
    include: ['test/**/*.test.js'],
    exclude: [
      'test/archived/**',
      'test/integration/manual/**', // Exclude manual integration tests from automated runs
      'test/protocol/**' // Exclude protocol tests from automated runs (require live DB)
    ],
    env: {
      NODE_ENV: 'test'
    },
    coverage: {
      provider: 'v8',
      reporter: ['text', 'json', 'html'],
      include: ['index.js', 'lib/**/*.js'],
      exclude: ['test/**', 'scripts/**', 'node_modules/**']
    }
  }
});