[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix(browser): resolve thread count from `maxWorkers` (#7483)

authored by

Ari Perkkiö and committed by
GitHub
(Feb 13, 2025, 5:10 PM +0200) adbb25ab 8fe641b4

+4
+4
packages/browser/src/node/pool.ts
··· 155 155 return 1 156 156 } 157 157 158 + if (project.config.maxWorkers) { 159 + return project.config.maxWorkers 160 + } 161 + 158 162 return vitest.config.watch 159 163 ? Math.max(Math.floor(numCpus / 2), 1) 160 164 : Math.max(numCpus - 1, 1)