-
Notifications
You must be signed in to change notification settings - Fork 51
Repositories: userRepository tests (lookup + uniqueness assumptions) #148
Copy link
Copy link
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programbackenddatabasetesting
Description
Description
Add unit/integration tests for user persistence operations used by auth flows.
Requirements and context
- Validate uniqueness constraints behavior.
- Avoid logging PII.
Suggested execution
- Fork the repo and create a branch:
git checkout -b test/user-repository - Work in Callora-Backend (TypeScript / Express).
Primary paths
src/repositories/userRepository.ts
- Run
npm run lint,npm run typecheck, andnpm test.
Deliverables
- Tests + fixes if bugs found.
Test and commit
- Add or extend unit and/or integration tests (
src/**/*.test.ts,tests/integration/**). - Paste summarized test output in the PR; call out security or data-integrity notes.
Example commit message
test(users): userRepository coverage
Guidelines
- Tests should cover new behavior and important edge cases.
- Keep changes focused; follow existing patterns in the codebase.
- Timeframe: 96 hours from assignment unless agreed otherwise.
Reactions are currently unavailable