diff --git a/docs/config/index.md b/docs/config/index.md index 0b817ef97..9ff794c8c 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -547,7 +547,7 @@ export default defineConfig({ ### poolMatchGlobs -- **Type:** `[string, 'threads' | 'forks' | 'VmThreads'][]` +- **Type:** `[string, 'threads' | 'forks' | 'vmThreads'][]` - **Default:** `[]` - **Version:** Since Vitest 0.29.4 @@ -1327,7 +1327,7 @@ Run the browser in a `headless` mode. If you are running Vitest in CI, it will b - **Type:** `boolean` - **Default:** `true` -- **CLI:** `--browser`, `--browser.isolate=false` +- **CLI:** `--browser.isolate`, `--browser.isolate=false` Isolate test environment after each test. diff --git a/packages/vitest/src/node/pools/child.ts b/packages/vitest/src/node/pools/child.ts index 8b97ea69e..1c107a802 100644 --- a/packages/vitest/src/node/pools/child.ts +++ b/packages/vitest/src/node/pools/child.ts @@ -84,7 +84,7 @@ export function createChildProcessPool(ctx: Vitest, { execArgv, env }: PoolProce options.concurrentTasksPerWorker = 1 } - if (ctx.config.poolOptions?.threads?.singleThread) { + if (ctx.config.poolOptions?.forks?.singleFork) { options.concurrentTasksPerWorker = 1 options.maxThreads = 1 options.minThreads = 1