Skip to content

Avoid overriding environments configured in Vitest workspaces - #323

Open
carloitaben wants to merge 1 commit into
solidjs:mainfrom
carloitaben:fix/vitest-workspace-environment
Open

Avoid overriding environments configured in Vitest workspaces#323
carloitaben wants to merge 1 commit into
solidjs:mainfrom
carloitaben:fix/vitest-workspace-environment

Conversation

@carloitaben

Copy link
Copy Markdown

Fixes #205.

The Solid Vite plugin was injecting jsdom whenever the top-level Vitest config did not define test.environment. This overrode environments configured inside Vitest workspaces.

The plugin now skips the jsdom default when test.workspace or test.projects is configured, allowing each workspace/project to control its own environment.

@changeset-bot

changeset-bot Bot commented Aug 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a732eeb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vite-plugin-solid Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test environment detection doesn't consider Vitest workspaces

1 participant