feat(wrangler): add test harness resource accessors#14287
Conversation
🦋 Changeset detectedLatest commit: af427f8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
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 |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
✅ All changesets look good |
|
My analysis is complete. The change is well-reasoned:
The only minor observation (empty-string worker name → "the worker" message instead of naming it) is cosmetic and not reachable through the public test-harness API, since No logic bugs, security issues, backward-compat violations, or incorrect API behavior found. LGTM |
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
petebacondarwin
left a comment
There was a problem hiding this comment.
A couple of questions/suggestions - nothing blocking.
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Fixes n/a.
This adds per-Worker resource accessors to
createTestHarness(), so tests can inspect the same local resources that a Worker used while handling a request.For example:
A picture of a cute animal (not mandatory, but encouraged)