Skip to content

feat(vitest): vitest browser mode #588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 19, 2025
Merged

Conversation

manuel3108
Copy link
Member

@manuel3108 manuel3108 commented Jun 9, 2025

Supports vitest browser mode. Makes the setup more flexible by asking the user to add component / unit testing.

Adds a new object.createFromPrimitives to core that should help us find the right balance for #557. We should all object.create calls in the future and try to use this wherever possible.

todo:

  • test in non kit project
  • check if error / warning for The following Vite config options will be overridden by SvelteKit: - root is accurate and how to avoid it => accurate, not something we control

Copy link

changeset-bot bot commented Jun 9, 2025

🦋 Changeset detected

Latest commit: 435759c

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

This PR includes changesets to release 1 package
Name Type
sv 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

Copy link

pkg-pr-new bot commented Jun 9, 2025

Open in StackBlitz

npx https://pkg.pr.new/sveltejs/cli/sv@588
npx https://pkg.pr.new/sveltejs/cli/svelte-migrate@588

commit: 435759c

@manuel3108 manuel3108 requested a review from Copilot June 19, 2025 03:03
Copilot

This comment was marked as resolved.

@manuel3108 manuel3108 marked this pull request as ready for review June 19, 2025 05:04
@manuel3108 manuel3108 merged commit e0756a7 into main Jun 19, 2025
7 checks passed
@manuel3108 manuel3108 deleted the feat/vitest-browser-mode branch June 19, 2025 05:05
@github-actions github-actions bot mentioned this pull request Jun 19, 2025
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.

2 participants