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
Description
The session service has no dedicated tests.
backend/src/services/session.service.tshas no corresponding file inbackend/tests/services/, so session creation and validation logic is untested.Requirements and context
session.service.test.tscovering session flowsSuggested execution
Fork the repo and create a branch
Implement changes
npm run test:backendExample commit message
test: add unit tests for session serviceGuidelines