fix(hono): Allow passing env and fix type issues#19825
fix(hono): Allow passing env and fix type issues#19825
Conversation
size-limit report 📦
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
|
|
||
| expect(applySdkMetadataMock).toHaveBeenCalledTimes(1); | ||
| expect(applySdkMetadataMock).toHaveBeenCalledWith(options, 'hono'); | ||
| expect(applySdkMetadataMock).toHaveBeenCalledWith(options, 'hono', ['hono', 'cloudflare']); |
There was a problem hiding this comment.
No test for the new callback options feature
Low Severity
The primary feature of this fix PR — passing options as a callback function receiving env (the (env: E['Bindings']) => HonoOptions branch) — has no unit, integration, or e2e test covering it. All existing tests pass options as a plain object. There's no test verifying that when options is a function, it gets called with the env argument and its return value is used correctly.
Additional Locations (1)
Triggered by project rule: PR Review Guidelines for Cursor Bot


Fixes some things in the Hono cloudflare export:
env@sentry/cloudflareCloses #19826 (added automatically)