test: speed up test suite
This commit is contained in:
@@ -6,7 +6,7 @@ import { defineConfig } from "vitest/config";
|
||||
const repoRoot = path.dirname(fileURLToPath(import.meta.url));
|
||||
const isCI = process.env.CI === "true" || process.env.GITHUB_ACTIONS === "true";
|
||||
const isWindows = process.platform === "win32";
|
||||
const localWorkers = Math.max(4, Math.min(8, os.cpus().length));
|
||||
const localWorkers = Math.max(4, Math.min(16, os.cpus().length));
|
||||
const ciWorkers = isWindows ? 2 : 3;
|
||||
|
||||
export default defineConfig({
|
||||
|
||||
Reference in New Issue
Block a user