ENF News Bot
Automated News Bot
- Joined
- Apr 15, 2022
- Messages
- 2,591
Version 1 of the Workers Vitest integration is published as
The Vitest configuration API is unchanged. Existing projects must update the dependency name, package imports, and TypeScript
To migrate automatically, run:
npmyarnpnpm
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
Continue reading...
@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:
npmyarnpnpm
npx @cloudflare/codemods vitest:pool-workers-to-vitest-pluginyarn @cloudflare/codemods vitest:pool-workers-to-vitest-pluginpnpm @cloudflare/codemods vitest:pool-workers-to-vitest-pluginThe 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.Continue reading...