stack/vitest.shared.ts
mantrakp04 dff79b05a8 chore: update Vitest configuration and adjust e2e fallback tests
- Set minWorkers to 1 in vitest.shared.ts to optimize test execution.
- Modify e2e-fallback-tests.yaml to correctly set the PORT environment variable for backend startup.
- Change db-migrations.tsdown.config.ts to prevent cleaning of the dist directory, ensuring server files remain intact for Docker builds.
2026-06-23 12:35:08 -07:00

15 lines
347 B
TypeScript

import tsconfigPaths from "vite-tsconfig-paths";
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [tsconfigPaths() as any],
test: {
watch: false,
pool: 'threads',
minWorkers: 1,
maxWorkers: 8,
include: ['**/*.test.{js,ts,jsx,tsx}'],
includeSource: ['**/*.{js,ts,jsx,tsx}'],
},
})