Skip to content

Commit b28cd2e

Browse files
authored
fix: don't normalize drive case letter in root (#6792)
1 parent df6d750 commit b28cd2e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/vitest/src/node/create.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import type {
44
} from 'vite'
55
import type { VitestOptions } from './core'
66
import type { UserConfig, VitestRunMode } from './types/config'
7+
import { resolve } from 'node:path'
8+
import { slash } from '@vitest/utils'
79
import { findUp } from 'find-up'
8-
import { resolve } from 'pathe'
910
import { mergeConfig } from 'vite'
1011
import { configFiles } from '../constants'
1112
import { Vitest } from './core'
@@ -19,7 +20,7 @@ export async function createVitest(
1920
vitestOptions: VitestOptions = {},
2021
) {
2122
const ctx = new Vitest(mode, vitestOptions)
22-
const root = resolve(options.root || process.cwd())
23+
const root = slash(resolve(options.root || process.cwd()))
2324

2425
const configPath
2526
= options.config === false

0 commit comments

Comments
 (0)