test: reduce default runner noise and contention
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
"dev:ios": "tsx scripts/live-reload.ts --platform ios",
|
||||
"dev:android": "tsx scripts/live-reload.ts --platform android",
|
||||
"build:mobile": "pnpm --filter @fusion/dashboard build && npx cap sync",
|
||||
"test": "vitest run",
|
||||
"test": "vitest run --silent=passed-only --reporter=dot",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { defineConfig } from "vitest/config";
|
||||
import { availableParallelism } from "node:os";
|
||||
|
||||
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