/// import react from '@vitejs/plugin-react'; import { defineConfig } from 'vitest/config'; export default defineConfig({ plugins: [react()], test: { // Ensure non-interactive and CI-friendly configuration watch: false, silent: false, passWithNoTests: true, teardownTimeout: 5000, // Testing environment setup environment: 'jsdom', setupFiles: ['./src/test/setup.ts'], // Ensure we're using the right environment environment: 'node', // Only include database integration tests include: ['src/test/db-integration.test.ts'], // Configure coverage collection coverage: { provider: 'v8', reporter: ['text', 'json', 'html'], exclude: ['node_modules/', 'src/test/**/*', '**/*.d.ts'], }, // Global settings globals: true, }, });