Workers - @cloudflare/vitest-pool-workers renamed to @cloudflare/vitest-plugin
The Workers Vitest integration package has been renamed from @cloudflare/vitest-pool-workers to @cloudflare/vitest-plugin. Existing projects must update the dependency name and imports, with automated migration available via codemod.
Version 1 of the Workers Vitest integration is published as @cloudflare/vitest-plugin ↗. The package was formerly named @cloudflare/vitest-pool-workers.
The Vitest configuration API is unchanged. Existing projects must update the dependency name, package imports, and TypeScript types entries.
To migrate automatically, run:
npmyarnpnpmnpx @cloudflare/codemods vitest:pool-workers-to-vitest-pluginyarn @cloudflare/codemods vitest:pool-workers-to-vitest-pluginpnpm @cloudflare/codemods vitest:pool-workers-to-vitest-plugin
The codemod updates your dependency, imports, and test TypeScript configuration. For manual migration steps, refer to Migrate to Vitest plugin.
For outbound request mocks in Workers tests, use the @msw/cloudflare ↗ integration. Refer to Mock outbound requests.
Source: original entry ↗