File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ import type {
4
4
} from 'vite'
5
5
import type { VitestOptions } from './core'
6
6
import type { UserConfig , VitestRunMode } from './types/config'
7
+ import { resolve } from 'node:path'
8
+ import { slash } from '@vitest/utils'
7
9
import { findUp } from 'find-up'
8
- import { resolve } from 'pathe'
9
10
import { mergeConfig } from 'vite'
10
11
import { configFiles } from '../constants'
11
12
import { Vitest } from './core'
@@ -19,7 +20,7 @@ export async function createVitest(
19
20
vitestOptions : VitestOptions = { } ,
20
21
) {
21
22
const ctx = new Vitest ( mode , vitestOptions )
22
- const root = resolve ( options . root || process . cwd ( ) )
23
+ const root = slash ( resolve ( options . root || process . cwd ( ) ) )
23
24
24
25
const configPath
25
26
= options . config === false
You can’t perform that action at this time.
0 commit comments