[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix: don't normalize drive case letter in root (#6792)

authored by

Vladimir and committed by
GitHub
(Oct 25, 2024, 4:57 PM +0200) b28cd2e3 df6d750b

+3 -2
+3 -2
packages/vitest/src/node/create.ts
··· 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 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