You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate account-guard test failure for nonexistent accounts #32
With dependencies installed and an isolated MongoDB database available:
DATABASE_URI=<test-database-uri> npm test -- --runInBand
Observed at commit a255fc7935c3017dcde3a2ea3a7fc04e69fb7fce using Node.js v22.23.2: 13 suites pass; the account-guard suite fails.
FAIL src/account/account.guard.spec.ts
● Test suite failed to run
expect(received).rejects.toThrowError(expected)
Expected substring: "Account does not exists"
Received message: "Unauthorized"
Acceptance criteria
Diagnose the message mismatch and establish the expected error contract.
Correct the implementation or test accordingly.
Await asynchronous rejection assertions so failures are attributed correctly.
Verify nonexistent accounts and invalid tokens remain rejected.
Activity