test(cloudflare): Add integration tests for scheduled, D1, and workflow#20609
test(cloudflare): Add integration tests for scheduled, D1, and workflow#20609
Conversation
8241ad2 to
204c0ae
Compare
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.
Reviewed by Cursor Bugbot for commit 204c0ae. Configure here.
| }), | ||
| ); | ||
| }) | ||
| .start(signal); |
There was a problem hiding this comment.
D1 test missing .unordered() risks flaky ordering
Low Severity
The D1 test expects two transaction envelopes (GET /init then GET /query) in strict order without calling .unordered(). Since the SDK flushes telemetry asynchronously via waitUntil, the second transaction could arrive at the mock server before the first, causing the ordered assertion to fail. Every other multi-envelope test in this project (hono-sdk, hono-integration, durableobject, workflow) uses .unordered() to avoid this. The two expectations are already distinguishable by transaction name, so .unordered() would be safe here.
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit 204c0ae. Configure here.
size-limit report 📦
|


closes #16894
closes JS-677
This adds only basic integration tests for D1,
scheduledof an exported handler and a Workflow.