chore(deps): update dependency @cloudflare/vitest-pool-workers to v0.13.2#8460
Open
renovate[bot] wants to merge 1 commit intolatestfrom
Open
chore(deps): update dependency @cloudflare/vitest-pool-workers to v0.13.2#8460renovate[bot] wants to merge 1 commit intolatestfrom
renovate[bot] wants to merge 1 commit intolatestfrom
Conversation
583caa4 to
892cf46
Compare
892cf46 to
f7d8968
Compare
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.
This PR contains the following updates:
^0.12.0→^0.13.00.12.21→0.13.2Release Notes
cloudflare/workers-sdk (@cloudflare/vitest-pool-workers)
v0.13.2Compare Source
Patch Changes
c9b3184,13df6c7,df0d112,81ee98e,c600ce0,f509d13,3b81fc6,0a7fef9]:v0.13.1Compare Source
Patch Changes
ade0aed,2b9a186,65f1092,7b0d8f5,351e1e1,2b9a186]:v0.13.0Compare Source
Minor Changes
#11632
a6ddbdbThanks @penalosa! - Support Vitest 4 in@cloudflare/vitest-pool-workers.This a breaking change to the
@cloudflare/vitest-pool-workersintegration in order to support Vitest v4. Along with supporting Vitest v4 (and dropping support for Vitest v2 and v3), we've made a number of changes that may require changes to your tests. Our aim has been to improve stability & the foundations of@cloudflare/vitest-pool-workersas we move towards a v1 release of the package.We've made a codemod to make the migration easier, which will make the required changes to your config file:
Or, without installing the package first:
Config API:
defineWorkersProjectanddefineWorkersConfigfrom@cloudflare/vitest-pool-workers/confighave been replaced with acloudflareTest()Vite plugin exported from@cloudflare/vitest-pool-workers. Thetest.poolOptions.workersoptions are now passed directly tocloudflareTest():Before:
After:
isolatedStorage&singleWorker: These have been removed in favour of a simpler isolation model that more closely matches Vitest. Storage isolation is now on a per test file basis, and you can make your test files share the same storage by using the Vitest flags--max-workers=1 --no-isolateimport { env, SELF } from "cloudflare:test": These have been removed in favour ofimport { env, exports } from "cloudflare:workers".exports.default.fetch()has the same behaviour asSELF.fetch(), except that it doesn't expose Assets. To test your assets, write an integration test usingstartDevWorker()import { fetchMock } from "cloudflare:test": This has been removed. Instead, mockglobalThis.fetchor use ecosystem libraries like MSW (recommended).Vitest peer dependency:
@cloudflare/vitest-pool-workersnow requiresvitest@^4.1.0.Patch Changes
f7de0fd,ff543e3,8e89e85,e63539d,8d1e130,6ee18e1,ecc7f79,1dda1c8,4bb61b9]:Configuration
📅 Schedule: Branch creation - "before 8am every weekday,every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.