Skip to content

Introduce vitest4 to vitest-pool-workers#28908

Merged
MattieTK merged 8 commits intoproductionfrom
mattietk/vitest-pool-workers-vitest4
Mar 18, 2026
Merged

Introduce vitest4 to vitest-pool-workers#28908
MattieTK merged 8 commits intoproductionfrom
mattietk/vitest-pool-workers-vitest4

Conversation

@MattieTK
Copy link
Member

Summary

This introduces a changelog and updates relevant documentation for vitest-pool-workers to reflect the changes made to update to vitest4. There are some features that are dependent on vitest 4.1 so we should wait for that release before merging this.

The changelog largely uses the documentation opencode persona, but has been manually reviewed and tweaked where it overstepped.

Documentation checklist

@github-actions github-actions bot added product:workers Related to Workers product product:durable-objects Durable Objects: https://developers.cloudflare.com/workers/learning/using-durable-objects/ product:changelog size/xl labels Mar 11, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2026

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/durable-objects/ @elithrar, @vy-ton, @joshthoward, @oxyjun, @lambrospetrou, @mikenomitch, @cloudflare/pcx-technical-writing
/src/content/docs/workers/ @cloudflare/workers-docs, @GregBrimble, @irvinebroque, @mikenomitch, @korinne, @WalshyDev, @cloudflare/deploy-config, @cloudflare/pcx-technical-writing, @cloudflare/wrangler, @mattietk, @cloudflare/dev-plat-leads

@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2026

Preview URL: https://aa9cdbd1.preview.developers.cloudflare.com
Preview Branch URL: https://mattietk-vitest-pool-workers-vitest4.preview.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/workers/testing/vitest-integration/configuration/ https://mattietk-vitest-pool-workers-vitest4.preview.developers.cloudflare.com/workers/testing/vitest-integration/configuration/
https://developers.cloudflare.com/workers/testing/vitest-integration/known-issues/ https://mattietk-vitest-pool-workers-vitest4.preview.developers.cloudflare.com/workers/testing/vitest-integration/known-issues/
https://developers.cloudflare.com/workers/testing/vitest-integration/test-apis/ https://mattietk-vitest-pool-workers-vitest4.preview.developers.cloudflare.com/workers/testing/vitest-integration/test-apis/
https://developers.cloudflare.com/workers/testing/vitest-integration/debugging/ https://mattietk-vitest-pool-workers-vitest4.preview.developers.cloudflare.com/workers/testing/vitest-integration/debugging/
https://developers.cloudflare.com/workers/testing/vitest-integration/migration-guides/migrate-from-miniflare-2/ https://mattietk-vitest-pool-workers-vitest4.preview.developers.cloudflare.com/workers/testing/vitest-integration/migration-guides/migrate-from-miniflare-2/
https://developers.cloudflare.com/durable-objects/examples/testing-with-durable-objects/ https://mattietk-vitest-pool-workers-vitest4.preview.developers.cloudflare.com/durable-objects/examples/testing-with-durable-objects/
https://developers.cloudflare.com/workers/testing/vitest-integration/write-your-first-test/ https://mattietk-vitest-pool-workers-vitest4.preview.developers.cloudflare.com/workers/testing/vitest-integration/write-your-first-test/
https://developers.cloudflare.com/workers/testing/vitest-integration/isolation-and-concurrency/ https://mattietk-vitest-pool-workers-vitest4.preview.developers.cloudflare.com/workers/testing/vitest-integration/isolation-and-concurrency/
https://developers.cloudflare.com/workers/testing/vitest-integration/migration-guides/migrate-from-unstable-dev/ https://mattietk-vitest-pool-workers-vitest4.preview.developers.cloudflare.com/workers/testing/vitest-integration/migration-guides/migrate-from-unstable-dev/
https://developers.cloudflare.com/durable-objects/best-practices/rules-of-durable-objects/ https://mattietk-vitest-pool-workers-vitest4.preview.developers.cloudflare.com/durable-objects/best-practices/rules-of-durable-objects/
https://developers.cloudflare.com/workers/testing/vitest-integration/ https://mattietk-vitest-pool-workers-vitest4.preview.developers.cloudflare.com/workers/testing/vitest-integration/
https://developers.cloudflare.com/workers/best-practices/workers-best-practices/ https://mattietk-vitest-pool-workers-vitest4.preview.developers.cloudflare.com/workers/best-practices/workers-best-practices/

Copy link
Contributor

@irvinebroque irvinebroque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See questions about codemod

Also — opportunity for agent skill?

@MattieTK
Copy link
Member Author

We're spinning out the changelog from this so we can land the docs change and continue on the changelog separately today.

Copy link
Contributor

@threepointone threepointone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we have a guide for migrating from vitest 3.x?

@MattieTK
Copy link
Member Author

should we have a guide for migrating from vitest 3.x?

Question here on vitest vs vitest-pool-workers: vitest 3 -> vitest 4 is something that the vitest guides cover themselves in more detail than we would. Otherwise we're talking about just the changes that are happening in this update which hopefully are quite transitory and something the changelog will cover.

@MattieTK MattieTK enabled auto-merge (squash) March 18, 2026 10:57
@MattieTK MattieTK merged commit a881733 into production Mar 18, 2026
11 checks passed
@MattieTK MattieTK deleted the mattietk/vitest-pool-workers-vitest4 branch March 18, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:changelog product:durable-objects Durable Objects: https://developers.cloudflare.com/workers/learning/using-durable-objects/ product:workers Related to Workers product size/xl

Projects

None yet

Development

Successfully merging this pull request may close these issues.