chore(test): move to @cloudflare/vitest-plugin, the Workers pool's new name - #103
Merged
Merged
Conversation
…w name Cloudflare renamed @cloudflare/vitest-pool-workers to @cloudflare/vitest-plugin for its 1.0 (workers-sdk#15074). The old name stopped at 0.22.0 on 2026-08-18 and gets no more releases, and Dependabot does not follow a rename, so we had silently stopped updating. The change is the package name in package.json, the vitest.config.ts import, the tsconfig.worker.json types entry and the D1Migration type in worker/test/env.d.ts. 1.3.0 rather than 1.3.1: 1.3.1 and the wrangler it depends on were published today, and pnpm's minimum release age would have added exceptions for both to pnpm-workspace.yaml. Still Vitest 4: Vitest 5 support is workers-sdk#15500, open, due as the plugin's 2.0. Vite+ 1.0 pins Vitest 5, so it waits for that. The new plugin bundles workerd 2026-09-26 (was 2026-08-15); the Worker tests pass with compatibility_date 2026-09-26, recorded in the docs, but the date is left at 2026-08-20 here because it changes production's runtime. Test-only: deploys still use the root wrangler 4.134.0. The old pool's sharp 0.35.2 leaves the lockfile; sharp 0.35.4 stays, through the root wrangler.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cloudflare renamed
@cloudflare/vitest-pool-workersto@cloudflare/vitest-pluginfor its 1.0 (workers-sdk#15074). The old name stopped at 0.22.0 on 2026-08-18 and gets no more releases, and Dependabot does not follow a rename, so we had silently stopped updating.The change is the package name in
package.json, thevitest.config.tsimport, thetsconfig.worker.jsontypes entry and theD1Migrationtype inworker/test/env.d.ts.pnpm-workspace.yaml.docs/development.md("Tooling gotchas") says so.compatibility_date: the new plugin bundles workerd 2026-09-26 (was 2026-08-15). The Worker tests pass withcompatibility_date2026-09-26, recorded in the docs, but the date stays at 2026-08-20 here because it changes production's runtime.wrangler4.134.0. The old pool'ssharp0.35.2 leaves the lockfile;sharp0.35.4 stays, through the root wrangler.Checks
pnpm typecheck,pnpm lint,pnpm format:check: cleanpnpm test: 836 passed, 1 skipped; theworkerproject 190 of 190/code-reviewand/security-review: no findings. Lockfile integrity matches the registry; 1.3.0 has npm provenance fromcloudflare/workers-sdk.