From 1045b98b947fe9f48a413fd23f36689ec6afb9dd Mon Sep 17 00:00:00 2001 From: Vladimir Date: Tue, 30 Jan 2024 22:13:27 +0100 Subject: [PATCH] fix(vitest): don't run typecheck tests in browser if both are enabled (#5080) --- packages/vitest/src/node/pool.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/vitest/src/node/pool.ts b/packages/vitest/src/node/pool.ts index ca9d3f9bc544..89d4b0764d94 100644 --- a/packages/vitest/src/node/pool.ts +++ b/packages/vitest/src/node/pool.ts @@ -37,16 +37,14 @@ export function createPool(ctx: Vitest): ProcessPool { } function getDefaultPoolName(project: WorkspaceProject, file: string): Pool { - if (project.config.browser.enabled) - return 'browser' - if (project.config.typecheck.enabled) { for (const glob of project.config.typecheck.include) { if (mm.isMatch(file, glob, { cwd: project.config.root })) return 'typescript' } } - + if (project.config.browser.enabled) + return 'browser' return project.config.pool }