Skip to content

Commit

Permalink
fix: don't normalize drive case letter in root (#6792)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va authored Oct 25, 2024
1 parent df6d750 commit b28cd2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vitest/src/node/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import type {
} from 'vite'
import type { VitestOptions } from './core'
import type { UserConfig, VitestRunMode } from './types/config'
import { resolve } from 'node:path'
import { slash } from '@vitest/utils'
import { findUp } from 'find-up'
import { resolve } from 'pathe'
import { mergeConfig } from 'vite'
import { configFiles } from '../constants'
import { Vitest } from './core'
Expand All @@ -19,7 +20,7 @@ export async function createVitest(
vitestOptions: VitestOptions = {},
) {
const ctx = new Vitest(mode, vitestOptions)
const root = resolve(options.root || process.cwd())
const root = slash(resolve(options.root || process.cwd()))

const configPath
= options.config === false
Expand Down

0 comments on commit b28cd2e

Please sign in to comment.