Merged
Conversation
|
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
petebacondarwin
approved these changes
Feb 4, 2026
Contributor
petebacondarwin
left a comment
There was a problem hiding this comment.
do we need separate buckets of config?
Contributor
Author
We don't and I wouldn't have written this in this way... |
This was referenced Feb 4, 2026
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.
Part of #12346
Part of a series (#12347, #12356, #12373, #12385, #12403) handling simple refactors, one package at a time to keep the review simpler.
This PR handles bucket 2 out of 4 of the wrangler package.
Code was created by OpenNext/Opus:
Wrangler Bucket 2 Migration Summary
Overview
Bucket 2 of the wrangler migration has been completed. This covered 31 test files across 4 directories.
Results
File Details
R2 Files (10 files)
r2/local-uploads.test.tsexpectin MSW handlersr2/bucket.test.tsexpectin MSW handlers + helper functionsr2/object.test.tsexpectin MSW handlersr2/bulk.test.tsexpectin MSW handlersr2/sql.test.tsexpectin MSW handlersr2/notification.test.tsr2/pipe.test.tsr2/local.test.tsr2/help.test.tsr2/errors.test.tsContainers Files (9 files)
containers/list.test.tsexpectin MSW handlerscontainers/registries.test.tsexpectin MSW handlers + helper functionscontainers/delete.test.tsexpectin MSW handlers + helper functionscontainers/deploy.test.tscontainers/images.test.tsexpectin MSW handlerscontainers/info.test.tsexpectin MSW handlerscontainers/config.test.tscontainers/push.test.tscontainers/ssh.test.tsCloudchamber Files (10 files)
cloudchamber/list.test.tsexpectin MSW handlerscloudchamber/images.test.tsexpectin MSW handlerscloudchamber/modify.test.tsexpectin MSW handlers + helper functionscloudchamber/delete.test.tsexpectin MSW handlerscloudchamber/curl.test.tsexpectin MSW handlerscloudchamber/create.test.tsexpectin MSW handlers + helper functionscloudchamber/apply.test.tsexpectin MSW handlers (mockCreateApplication,mockModifyApplication)cloudchamber/limits.test.tsvi.mockpatterns withexpectin testscloudchamber/build.test.tsvi.mockpatternscloudchamber/common.test.tsVectorize Files (2 files)
vectorize/vectorize.test.tsexpectin MSW handlersvectorize/vectorize.upsert.test.tsexpectin MSW handlersESLint Config Entry
The following entry was already added to
packages/wrangler/eslint.config.mjs(lines 47-55):Verification
pnpm --filter wrangler check:lint- PASSEDNotes
High complexity ratio: Bucket 2 has a high ratio of complex files (23/31 = 74%) compared to bucket 1 (12/39 = 31%). This is primarily due to:
expectinside MSW handlersCommon pattern: Most complex files use a pattern where
expectis called inside MSW request handlers to validate request bodies/parameters before returning mock responses.eslint-disable format: Used block comments for the disable/enable pattern:
Next Steps
Remaining buckets for wrangler migration:
versions/,autoconfig/,api/,deploy/,dev/,config/,utils/,core/,metrics/src/__tests__/*.test.ts)A picture of a cute animal (not mandatory, but encouraged)