test: reduce default runner noise and contention

This commit is contained in:
gsxdsm
2026-04-12 13:41:10 -07:00
parent b019ef2c8c
commit 724bb7931a
20 changed files with 26 additions and 25 deletions

View File

@@ -18,7 +18,7 @@
"scripts": {
"build": "tsc",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test": "vitest run --silent=passed-only --reporter=dot",
"test:executor": "vitest run src/executor.test.ts",
"test:watch": "vitest src/executor.test.ts --watch"
},

View File

@@ -2,7 +2,7 @@ import { defineConfig } from "vitest/config";
import { availableParallelism } from "node:os";
import { resolve } from "node:path";
const defaultMaxWorkers = Math.max(1, Math.min(4, Math.ceil(availableParallelism() / 8)));
const defaultMaxWorkers = Math.max(1, Math.min(2, Math.ceil(availableParallelism() / 8)));
const maxWorkers = Number.parseInt(process.env.VITEST_MAX_WORKERS ?? String(defaultMaxWorkers), 10);
export default defineConfig({