Skip to content

extract createSetupTest for reusable test setup#1000

Open
jycouet wants to merge 2 commits intomainfrom
refactor/create-setup-test
Open

extract createSetupTest for reusable test setup#1000
jycouet wants to merge 2 commits intomainfrom
refactor/create-setup-test

Conversation

@jycouet
Copy link
Contributor

@jycouet jycouet commented Mar 21, 2026

Moves the ~115-line setupTest boilerplate from the internal test suite into sv/testing as a createSetupTest(vitest) factory.

Internal tests now consume it the same way community add-ons will — a 3-line suite.ts.

Prep for community add-on improvements.


Internal stuff

Moves the setupTest boilerplate into `sv/testing` as a reusable
`createSetupTest(vitest)` factory. Internal tests now consume it
the same way community add-ons will.

Prep for community add-on improvements.
@changeset-bot
Copy link

changeset-bot bot commented Mar 21, 2026

⚠️ No Changeset found

Latest commit: b24d394

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 21, 2026

Open in StackBlitz

npx https://pkg.pr.new/svelte-migrate@1000
npx https://pkg.pr.new/sv@1000
npx https://pkg.pr.new/@sveltejs/sv-utils@1000

commit: b24d394

@jycouet jycouet mentioned this pull request Mar 21, 2026
12 tasks
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.

1 participant