Repository navigation
test: verify namespace middleware isolation - #209
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR adds a test for ChangesNamespace middleware coverage
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
electrohyun
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the contribution!
|
@shaurya703, your PR has now been merged, making you smocket's first external contributor! This is a meaningful milestone for the project. 😊 We're preparing more contributor-friendly issues as smocket moves toward 1.0.0. If you'd like to follow along, feel free to star the repository and check back for future issues. We hope to see you around again! |
Closes #207
Adds one case to
src/middleware.test.ts: middleware registered on/adminviaio.of('/admin').use()does not run for a default-namespace connection and runs exactly once for an/adminconnection. The default-namespace connection is fully awaited first, so its completion is the ordering marker that proves the middleware was skipped — no timeout involved.Also regenerated
docs/conformance.mdwithpnpm conformanceand removed the now-covered namespace-middleware bullet from the Not covered yet list.Verified locally:
pnpm test:real— 201 passedpnpm test:mock— 201 passedpnpm check:conformance,pnpm typecheck,pnpm lint,pnpm format:checkall pass