File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/vitest/src/node/plugins Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import type { UserConfig as ViteConfig , Plugin as VitePlugin } from 'vite'
22import type { ResolvedConfig , UserConfig } from '../types/config'
33import { deepClone , deepMerge , notNullish } from '@vitest/utils/helpers'
4- import { relative } from 'pathe'
4+ import { relative , resolve } from 'pathe'
55import * as vite from 'vite'
66import { defaultPort } from '../../constants'
77import { configDefaults } from '../../defaults'
@@ -30,7 +30,7 @@ export async function VitestPlugin(
3030 const userConfig = deepMerge ( { } , options ) as UserConfig
3131
3232 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 )
3434 return ( await import ( '@vitest/ui' ) ) . default ( vitest )
3535 }
3636
You can’t perform that action at this time.
0 commit comments