Feat/e2e and unit test suite - #1230
Conversation
Cover sendWelcome, sendVerificationComplete, and sendRiskAlert methods with assertions on subject, recipient, and HTML template payloads. Test transport configuration (port 465 secure, incomplete config skip), user-not-found early returns, empty flags handling, and error propagation from the SMTP transport back to callers. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Cover logActivity (create + save), findActivities with all filter paths (userId, actionType, startDate, endDate, combined date range), pagination defaults (page=1, limit=10) and custom sort parameters. Also test findActivitiesByUserId and findActivitiesByActionType with both populated and empty result cases. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
…cator HealthController tests mock TerminusModule indicators and assert status 'ok' when healthy and status 'error' when a dependency is down. RedisHealthIndicator tests cover the happy path (connect + ping + quit returns status 'up'), the connection-error path (throws HealthCheckError with status 'down' and error message), quit-after-failure cleanup, password passthrough, and fallback config defaults. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Replace the placeholder spec with comprehensive E2E tests that boot the full NestJS app against real Postgres and Redis. External services (Stellar, Mail, Queue) are mocked to avoid network calls. Covered journeys: - Auth flow: register, login, duplicate-email rejection, wrong-password - Document journey: upload → list → get → risk-assessment → verify, plus duplicate-hash idempotency - Authorization: cross-user document isolation (403), user-scoped document/dispute lists, unauthenticated rejection (401), regular user blocked from admin access-logs (403) - Public verification: unknown-hash returns verified:false, invalid format rejected with 400 - Health check: endpoint responds with status object Tables are truncated between tests for isolation. CI env vars updated to include all required ConfigModule values and --passWithNoTests removed. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@ustaxs is attempting to deploy a commit to the Mftee's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@ustaxs Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
mftee
left a comment
There was a problem hiding this comment.
@ustaxs This PR currently has a merge conflict with the main branch (mergeable_state: dirty), so it can't be merged as-is. Could you please rebase or merge main into your branch and resolve the conflicting files? Requesting changes until this is resolved.
mftee
left a comment
There was a problem hiding this comment.
Conflict has been resolved and the branch is clean against main now. The e2e and unit test suite looks solid - approving.
Closes #986
Closes #1115
Closes #1116
Closes #1117