Skip to content

✅ test(api): assert the welcome-version sentinel literally#555

Merged
scttbnsn merged 1 commit into
dev/v1.6from
feat/v1.6-welcome-version-literal
Jul 17, 2026
Merged

✅ test(api): assert the welcome-version sentinel literally#555
scttbnsn merged 1 commit into
dev/v1.6from
feat/v1.6-welcome-version-literal

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

CodeRabbit follow-up from release PR #550 (the finding): the welcome-version regression test compared the frame against getVersion() — the same mock production calls — so a hard-coded frame value could still pass. Now asserts the '9.9.9-test' sentinel literally (after clearing the mock's history) and verifies the mocked getVersion was called to produce the frame.

Test-only, 5 lines. 98/98 file tests green; full pre-push gate green from a worktree.

✨ Added

  • Strengthened the welcome-version regression test with the literal 9.9.9-test sentinel.
  • Verified the mocked getVersion function is called during handshake processing.
  • Cleared mock call history before exercising the gateway handshake.

Concerns:

  • None identified.

CodeRabbit follow-up on release PR #550: comparing the frame against
getVersion() exercised the same mock production calls, so a hard-coded
frame value could still pass. Assert the '9.9.9-test' sentinel directly
and verify the mocked getVersion was called for the frame.
@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
drydock-website Ready Ready Preview, Comment Jul 17, 2026 10:11am
drydockdemo-website Ready Ready Preview, Comment Jul 17, 2026 10:11am

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e39409cb-4810-4120-9603-3a9175d04674

📥 Commits

Reviewing files that changed from the base of the PR and between 396d96f and be8d4f5.

📒 Files selected for processing (1)
  • app/api/portwing-ws.test.ts

📝 Walkthrough

Walkthrough

The Portwing WebSocket welcome-frame test now clears getVersion mock history before the handshake. It asserts the response contains the fixed sentinel version 9.9.9-test and verifies that getVersion was called during handshake processing.

Possibly related PRs

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/v1.6-welcome-version-literal

Comment @coderabbitai help to get the list of available commands.

@scttbnsn
scttbnsn merged commit bdb8f3f into dev/v1.6 Jul 17, 2026
5 checks passed
@scttbnsn
scttbnsn deleted the feat/v1.6-welcome-version-literal branch July 17, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant