Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dario-piotrowicz
Copy link
Member

The patchConfig utility is defined in the workers-utils package but is tested in the wrangler package instead. I do believe that the tests should live in the same package implementing the utility so I am moving them here.

Those tests require the writeWranglerConfig, writeDeployRedirectConfig, writeRedirectedWranglerConfig and readWranglerConfig testing utilities so I am moving those under workers-utils/test-helpers.

Note

This is the same sort of change as #11539.
Besides patchConfig (as far as I can tell) there is only one more instance of a worker-utils utility being tested in wrangler validatePagesConfig I'm happy to also move those tests but I wanted to keep thing simple/separate and just focus on the patchConfig tests in this PR


  • Tests
    • Tests included/updated
    • Tests not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: internal change + workers-utils don't have docs
  • Wrangler V3 Backport
    • Wrangler PR:
    • Not necessary because: workers-utils are not in the v3 branch

A picture of a cute animal (not mandatory, but encouraged)

@changeset-bot
Copy link

changeset-bot bot commented Dec 12, 2025

🦋 Changeset detected

Latest commit: f01b3c6

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

…ngler-config testing utils to workers-utils/test-helpers
@dario-piotrowicz dario-piotrowicz force-pushed the dario/move-patchConfig-tests-to-workers-utils branch from 836ac3f to f01b3c6 Compare December 12, 2025 00:47
@dario-piotrowicz dario-piotrowicz marked this pull request as ready for review December 12, 2025 17:17
@dario-piotrowicz dario-piotrowicz requested review from a team as code owners December 12, 2025 17:17
@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Dec 15, 2025
@dario-piotrowicz dario-piotrowicz merged commit 90c0676 into main Dec 15, 2025
35 of 36 checks passed
@dario-piotrowicz dario-piotrowicz deleted the dario/move-patchConfig-tests-to-workers-utils branch December 15, 2025 15:36
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Dec 15, 2025
AmirSa12 pushed a commit to AmirSa12/workers-sdk that referenced this pull request Jan 5, 2026
…ngler-config testing utils to workers-utils/test-helpers (cloudflare#11621)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants