Created v0.13.0 vitest migration guide#29465
Created v0.13.0 vitest migration guide#29465ask-bonk[bot] wants to merge 2 commits intoproductionfrom
Conversation
Co-authored-by: elithrar <elithrar@users.noreply.github.com>
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
| A codemod is available to automate many of the migration steps: | ||
|
|
||
| ```sh | ||
| wrangler codemod vitest-pool-v3-to-v4 |
There was a problem hiding this comment.
I don't think this is actually true - the changelog suggests the following codemod will update the CONFIG only:
npx jscodeshift -t node_modules/@cloudflare/vitest-pool-workers/dist/codemods/vitest-v3-to-v4.mjs vitest.config.ts
|
/bigbonk there should be no changes to any GitHub Actions, .hyperlint, OpenCode commands, WindSurf rules, or code components in this PR. The PR must ONLY focus on the ask in #29463 |
…ption - Revert all 13 unrelated file changes (GitHub Actions, .hyperlint, OpenCode commands, WindSurf rules, components, CONTRIBUTING.md, MIGRATION.md) per reviewer request - Fix codemod description to accurately state it only updates the config file, not imports (addresses dxh9845 review comment) - Add globalThis.fetch cleanup in fetchMock migration example
|
Addressed both reviewer concerns:
Commit: 2c0e6e3 |
|
All review feedback has been addressed:
The net diff from |
The migration guide is ready. The new file documents how to migrate from earlier versions of
@cloudflare/vitest-pool-workersto v0.13.0+, which includes:cloudflareTest()plugin API (replacingdefineWorkersConfig())isolatedStorageandsingleWorkeroptionsSELF.fetch()toexports.default.fetch()cloudflare:testtocloudflare:workersfetchMockwith directglobalThis.fetchmocking or MSWThe guide is located at
/workers/testing/vitest-integration/migration-guides/migrate-to-v0.13.0/and will appear first in the migration guides sidebar (order: 1).Closes #29463
github run