Skip to content

Add end-to-end integration tests for deposit#243

Merged
robertocarlous merged 2 commits into
Neurowealth:mainfrom
DeveloperEmmy:main
Jul 2, 2026
Merged

Add end-to-end integration tests for deposit#243
robertocarlous merged 2 commits into
Neurowealth:mainfrom
DeveloperEmmy:main

Conversation

@DeveloperEmmy

Copy link
Copy Markdown
Contributor

Closes #219

Neurowealth#219 Add end-to-end integration tests for deposit and withdraw flows
Repo Avatar
Neurowealth/Backend
Summary
Deposit and withdraw are the most financially sensitive flows but only have unit-level coverage. Full integration tests against a real Postgres + mocked Stellar RPC would catch regressions that unit tests miss.

Scope
Seed test database with a funded user and custodial wallet
POST /api/deposit: verify Transaction record, position update, event cursor advance
POST /api/withdraw: verify balance deduction, transaction record, DLQ on RPC failure
Assert correct HTTP status, response shape, and database state after each operation
Acceptance Criteria
 Tests run against a Dockerised Postgres (can use existing docker-compose)
 Stellar RPC calls are mocked via jest.mock
 Both happy path and error path (RPC failure → DLQ) covered
 Tests added to CI node-ci.yml workflow
@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

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

@DeveloperEmmy DeveloperEmmy changed the title Add end-to-end integration tests for deposit and withdraw flows Repo Avatar Add end-to-end integration tests for deposit and withdraw flows Repo Avatar #219 Jun 26, 2026
@DeveloperEmmy DeveloperEmmy changed the title Add end-to-end integration tests for deposit and withdraw flows Repo Avatar #219 Add end-to-end integration tests for deposit Jun 26, 2026
@robertocarlous robertocarlous merged commit 017a78f into Neurowealth:main Jul 2, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add end-to-end integration tests for deposit and withdraw flows

2 participants