test: reduce default runner noise and contention
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user