[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(ui): don't fail if --ui and --root are specified together (#9536)

authored by

Vladimir and committed by
GitHub
(Feb 6, 2026, 11:43 AM +0100) d93055fc b66ff691

+2 -2
+2 -2
packages/vitest/src/node/plugins/index.ts
··· 1 1 import type { UserConfig as ViteConfig, Plugin as VitePlugin } from 'vite' 2 2 import type { ResolvedConfig, UserConfig } from '../types/config' 3 3 import { deepClone, deepMerge, notNullish } from '@vitest/utils/helpers' 4 - import { relative } from 'pathe' 4 + import { relative, resolve } from 'pathe' 5 5 import * as vite from 'vite' 6 6 import { defaultPort } from '../../constants' 7 7 import { configDefaults } from '../../defaults' ··· 30 30 const userConfig = deepMerge({}, options) as UserConfig 31 31 32 32 async function UIPlugin() { 33 - await vitest.packageInstaller.ensureInstalled('@vitest/ui', options.root || process.cwd(), vitest.version) 33 + await vitest.packageInstaller.ensureInstalled('@vitest/ui', resolve(options.root || process.cwd()), vitest.version) 34 34 return (await import('@vitest/ui')).default(vitest) 35 35 } 36 36