We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df6d750 commit b28cd2eCopy full SHA for b28cd2e
packages/vitest/src/node/create.ts
@@ -4,8 +4,9 @@ import type {
4
} from 'vite'
5
import type { VitestOptions } from './core'
6
import type { UserConfig, VitestRunMode } from './types/config'
7
+import { resolve } from 'node:path'
8
+import { slash } from '@vitest/utils'
9
import { findUp } from 'find-up'
-import { resolve } from 'pathe'
10
import { mergeConfig } from 'vite'
11
import { configFiles } from '../constants'
12
import { Vitest } from './core'
@@ -19,7 +20,7 @@ export async function createVitest(
19
20
vitestOptions: VitestOptions = {},
21
) {
22
const ctx = new Vitest(mode, vitestOptions)
- const root = resolve(options.root || process.cwd())
23
+ const root = slash(resolve(options.root || process.cwd()))
24
25
const configPath
26
= options.config === false
0 commit comments