ci: stabilize vitest runs

This commit is contained in:
Peter Steinberger
2026-01-18 06:58:46 +00:00
parent f86b24c511
commit d3b15c6afa
17 changed files with 28 additions and 25 deletions

View File

@@ -3,6 +3,7 @@ import { fileURLToPath } from "node:url";
import { defineConfig } from "vitest/config";
const repoRoot = path.dirname(fileURLToPath(import.meta.url));
const isCI = process.env.CI === "true" || process.env.GITHUB_ACTIONS === "true";
export default defineConfig({
resolve: {
@@ -11,8 +12,10 @@ export default defineConfig({
},
},
test: {
testTimeout: 30_000,
hookTimeout: 60_000,
testTimeout: 60_000,
hookTimeout: 120_000,
pool: "forks",
maxWorkers: isCI ? 3 : 4,
include: [
"src/**/*.test.ts",
"extensions/**/*.test.ts",