Skip to content

Add Unit Tests for Session Service #754

Description

@Mosas2000

Description

The session service has no dedicated tests. backend/src/services/session.service.ts has no corresponding file in backend/tests/services/, so session creation and validation logic is untested.

Requirements and context

  • Add a session.service.test.ts covering session flows
  • Cover creation, validation, expiry, and revocation
  • Use the existing test factories and helpers
  • Ensure it runs under the unit vitest config

Suggested execution

Fork the repo and create a branch

git checkout -b test/session-service

Implement changes

  • Add the test file
  • Cover happy paths and edge cases
  • Verify with npm run test:backend

Example commit message

test: add unit tests for session service

Guidelines

  • Assignment required before starting
  • PR must include a closing reference to this issue
  • Timeframe: 72 hours

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions