Enable full server test suite (including e2e and integration tests) to run in CI. Removed conditional exclude logic based on CI env var. The suite now runs the same tests in CI and locally, maintaining parallel execution support via forks pool.
26 lines
540 B
TypeScript
26 lines
540 B
TypeScript
import path from "node:path";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"@server": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
test: {
|
|
testTimeout: 30000,
|
|
hookTimeout: 30000,
|
|
globals: true,
|
|
environment: "node",
|
|
setupFiles: [path.resolve(__dirname, "./src/test-utils/vitest-setup.ts")],
|
|
pool: "forks",
|
|
poolOptions: {
|
|
forks: {
|
|
singleFork: false,
|
|
maxForks: 4,
|
|
},
|
|
},
|
|
exclude: ["**/node_modules/**"],
|
|
},
|
|
});
|