Skip to content

Commit e67613c

Browse files
Copilotteemingcbenmccann
authored
fix: avoid overridden Vite config warning with Vitest 4 (#15121)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: teemingc <54401897+teemingc@users.noreply.github.com> Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
1 parent 0da365a commit e67613c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/eager-islands-cheer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
fix: avoid false-positive Vite config overridden warning when using Vitest 4

packages/kit/src/exports/vite/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { import_peer } from '../../utils/import.js';
4242
import { compact } from '../../utils/array.js';
4343
import { should_ignore } from './static_analysis/utils.js';
4444

45-
const cwd = process.cwd();
45+
const cwd = posixify(process.cwd());
4646

4747
/** @type {import('./types.js').EnforcedConfig} */
4848
const enforced_config = {

0 commit comments

Comments
 (0)