Test Express not-found delegation - #1225
Conversation
✅ Deploy Preview for fedify-json-schema canceled.
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughAdds a test in ChangesExpress not-found delegation
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~4 minutes Change: Other Merge Risk: ⚪ Minimal · up to This change adds regression coverage for Express route delegation without changing runtime behavior. No actionable merge risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
dahlia
left a comment
There was a problem hiding this comment.
The test looks good and covers #857. Please update the AI disclosure in the PR description and the commit's Assisted-by trailer to specify which GPT-5.6 model you used: Luna, Terra, or Sol. For example, if you used Sol, the trailer should be Assisted-by: Codex:gpt-5.6-sol.
Verify that the Express integration calls `next()` when `Federation.fetch()` uses `onNotFound`, so normal route delegation cannot regress unnoticed. fedify-dev#857 Assisted-by: Codex:gpt-5.6-sol
8c11f7d to
bb87581
Compare
|
I updated the PR description and the commit's |
@fedify/expressdelegates requests that Fedify does not own to subsequent Express handlers by callingnext()fromonNotFound. This behavior did not have a focused test, so normal route delegation could regress unnoticed.This adds a test that makes a mock federation use
onNotFoundand verifies thatintegrateFederation()calls Expressnext().Closes #857.
Testing
mise run check-each expressmise run test:deno packages/express/src/index.test.tsmise run test-each expressAI assistance
I used Codex with the
gpt-5.6-solmodel to understand the relevant code, review the final diff, and improve my draft implementation. I wrote the final code myself and verified it locally.