Skip to content

Feat/e2e and unit test suite - #1230

Merged
mftee merged 5 commits into
CodeGirlsInc:mainfrom
ustaxs:feat/e2e-and-unit-test-suite
Aug 26, 2026
Merged

Feat/e2e and unit test suite#1230
mftee merged 5 commits into
CodeGirlsInc:mainfrom
ustaxs:feat/e2e-and-unit-test-suite

Conversation

@ustaxs

@ustaxs ustaxs commented Aug 25, 2026

Copy link
Copy Markdown

Closes #986
Closes #1115
Closes #1116
Closes #1117

ustaxs and others added 4 commits August 25, 2026 21:08
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>
@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

@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.

@drips-wave

drips-wave Bot commented Aug 25, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

@mftee mftee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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 mftee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflict has been resolved and the branch is clean against main now. The e2e and unit test suite looks solid - approving.

@mftee
mftee merged commit 15dac3b into CodeGirlsInc:main Aug 26, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants