From 192969e75a76e99d32d90013259ee008f4942c05 Mon Sep 17 00:00:00 2001 From: hugo Date: Tue, 10 Feb 2026 16:21:47 +0100 Subject: [PATCH] chore: set test parallelism --- vitest.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index 70cb8ff..9b51d56 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,10 +1,17 @@ import { defineConfig } from 'vitest/config'; import path from 'path'; +import os from 'os'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], test: { + pool: 'forks', + poolOptions: { + forks: { + maxForks: Math.max(1, Math.floor(os.cpus().length / 2)), + }, + }, globals: true, // Use jsdom for React component tests, node for main process tests environment: 'jsdom',