Skip to content

Overridden config warning when using Vitest 4 and paths.base in svelte.config.js #15361

@teemingc

Description

@teemingc

Describe the bug

For some reason, Vitest 4 sets the the Vite resolved config base setting to / when it should really be undefined. We thought we fixed this by ensuring the default Kit base path always matches the Vite default. Unfortunately, if you set a base path in svelte.config.js, they will end up differing again and you'll get a false-positive warning about an overridden config setting.

Reproduction

.

Logs

System Info

.

Severity

annoyance

Additional Information

.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions