feat(wrangler): dispatching email handlers with test harness - #14685
Conversation
🦋 Changeset detectedLatest commit: 3c6167b 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 |
|
✅ All changesets look good |
@cloudflare/autoconfig
@cloudflare/config
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: |
|
@edmundhung Bonk workflow was cancelled. View workflow run · To retry, trigger Bonk again. |
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
|
Review posted successfully to PR #14685. I reviewed the PR and posted a batch review with two inline comments:
|
tpmmorris
left a comment
There was a problem hiding this comment.
Very useful change for improving Email service UX. Some of the response interfaces could be altered to provide better data to Local Explorer in the future.
|
Codeowners approval required for this PR:
Show detailed file reviewers |
e2043a8 to
a1ae02c
Compare
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
5e2003e to
3c6167b
Compare
Fixes n/a.
This adds support for dispatching email handlers with
createTestHarnessYou can now call
server.getWorker().email({ from, to, raw })to dispatch directly to a Worker'semail()handler and inspect its outcome, rejection reason, forwarded messages, and replies.A picture of a cute animal (not mandatory, but encouraged)