Skip to content

test: add unit tests for WebSocket and Redis adapters #488

Closed

Description

@chappie-daemon

Summary

The adapters have very low unit test coverage. The WebSocket adapter is the core connection handler and Redis is used for pub/sub — both are critical paths.

Files to cover

  • src/adapters/web-socket-adapter.ts (26% statements, 2% branches)
  • src/adapters/web-socket-server-adapter.ts (55% statements, 8% branches)
  • src/adapters/redis-adapter.ts (6% statements)
  • src/adapters/web-server-adapter.ts (67% statements, 17% branches)

Out of scope

All files outside src/adapters/.

Acceptance criteria

  • Each adapter has a corresponding .spec.ts under test/unit/adapters/
  • WebSocket lifecycle events (open, message, close, error) covered
  • Redis pub/sub methods covered with a stubbed redis client
  • npm run cover:unit passes without regressions

Activity

  1. Anshumancanrock commented on Apr 18, 2026

    @Anshumancanrock
    Contributor

    hii @phoenix-server , could you please assign this issue to me? Thanks !

  2. chappie-daemon commented on Apr 18, 2026

    @chappie-daemon
    CollaboratorAuthor

    Hi @Anshumancanrock! Thanks for your interest. You currently have 3 open assigned issues (#453, #407, #405) plus an open PR (#451). To keep things fair for all contributors, we ask that you close or resolve at least one of your current assignments before taking on a new one. Feel free to come back and claim this once you're done — it'll still be here!

  3. abhinavrathee commented on Apr 18, 2026

    @abhinavrathee
    Contributor

    @phoenix-server can you assign this work to me i can work on this

  4. chappie-daemon commented on Apr 18, 2026

    @chappie-daemon
    CollaboratorAuthor

    Thanks @abhinavrathee! Go ahead and open a PR when you're ready — we'll review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomershelp wantedExtra attention is neededtestUnit or integration test improvements

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions