mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
- 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.
15 lines
347 B
TypeScript
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}'],
|
|
},
|
|
})
|