mirror of
https://github.com/acedanger/finance.git
synced 2025-12-05 22:50:12 -08:00
29 lines
818 B
TypeScript
29 lines
818 B
TypeScript
/// <reference types="vitest" />
|
|
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
|
|
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,
|
|
},
|
|
});
|