Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb28cd2e

Browse files
authored
fix: don't normalize drive case letter in root (#6792)
1 parentdf6d750 commitb28cd2e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎packages/vitest/src/node/create.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import type {
44
}from'vite'
55
importtype{VitestOptions}from'./core'
66
importtype{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
constctx=newVitest(mode,vitestOptions)
22-
constroot=resolve(options.root||process.cwd())
23+
constroot=slash(resolve(options.root||process.cwd()))
2324

2425
constconfigPath
2526
=options.config===false

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp