src/features/l2ps-messaging/tests/integration.test.ts drives a re-implemented fake server (register/send logic reimplemented inline), so it never exercises the real L2PSMessagingServer. Request/response-level behavior — requestId echo, canonicalization consistency across register → send → history → offline delivery, ed25519 proof verification — isn't covered end-to-end.
Do: boot the real server (Bun.serve) against a test DB, drive it over a real WebSocket client, and port the integration scenarios onto that harness. Removes the mock-boundary gap flagged during the #979 review.
Ref: PR #979.
src/features/l2ps-messaging/tests/integration.test.tsdrives a re-implemented fake server (register/send logic reimplemented inline), so it never exercises the realL2PSMessagingServer. Request/response-level behavior —requestIdecho, canonicalization consistency across register → send → history → offline delivery, ed25519 proof verification — isn't covered end-to-end.Do: boot the real server (
Bun.serve) against a test DB, drive it over a real WebSocket client, and port the integration scenarios onto that harness. Removes the mock-boundary gap flagged during the #979 review.Ref: PR #979.