Files
finance/vitest.config.ts
GitHub Copilot a5dcad1486 Replace in-memory store with database persistence
- Remove in-memory store and related tests
- Add Decimal to number conversion in API responses
- Update integration tests to handle Prisma Decimal type
- Fix test configuration to only run db-integration tests
2025-05-06 08:31:15 +00:00

22 lines
640 B
TypeScript

/// <reference types="vitest" />
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
// Increase timeout for slower CI environments
testTimeout: 10000,
// Use the setup file we created
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'],
},
},
});