Skip to content

Commit 1045b98

Browse files
authoredJan 30, 2024
fix(vitest): don't run typecheck tests in browser if both are enabled (#5080)
1 parent 0417ba2 commit 1045b98

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎packages/vitest/src/node/pool.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,14 @@ export function createPool(ctx: Vitest): ProcessPool {
3737
}
3838

3939
function getDefaultPoolName(project: WorkspaceProject, file: string): Pool {
40-
if (project.config.browser.enabled)
41-
return 'browser'
42-
4340
if (project.config.typecheck.enabled) {
4441
for (const glob of project.config.typecheck.include) {
4542
if (mm.isMatch(file, glob, { cwd: project.config.root }))
4643
return 'typescript'
4744
}
4845
}
49-
46+
if (project.config.browser.enabled)
47+
return 'browser'
5048
return project.config.pool
5149
}
5250

0 commit comments

Comments
 (0)
Please sign in to comment.