Skip to content

feat:Integration Test: DB-to-API#141

Merged
Sadeequ merged 2 commits intoStellarFlow-Network:mainfrom
Adeyemi-cmd:integration_test
Mar 29, 2026
Merged

feat:Integration Test: DB-to-API#141
Sadeequ merged 2 commits intoStellarFlow-Network:mainfrom
Adeyemi-cmd:integration_test

Conversation

@Adeyemi-cmd
Copy link
Copy Markdown
Contributor

Close #125

PR Summary

What changed

  • Added app.ts to centralize Express app setup and routing
  • Refactored index.ts to bootstrap the server from app.ts
  • Added integration test file: dbApiIntegration.test.ts
  • Added script: npm run test:integration

Files changed

  • app.ts
  • index.ts
  • dbApiIntegration.test.ts
  • package.json

Purpose

Verify full DB-to-API flow:

  • insert a dummy PriceHistory record into PostgreSQL
  • start the Express app on an ephemeral port
  • call GET /api/v1/history/:asset?from=...&to=...
  • assert expected JSON output

Test instructions

  1. Ensure .env has DATABASE_URL and API_KEY
  2. Run:
    • npm install
    • npm run test:integration

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 29, 2026

@Adeyemi-cmd 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

@Sadeequ
Copy link
Copy Markdown
Contributor

Sadeequ commented Mar 29, 2026

Resolve all conflicts please.

@Sadeequ Sadeequ merged commit e5546de into StellarFlow-Network:main Mar 29, 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

Development

Successfully merging this pull request may close these issues.

[BACKEND] Integration Test: DB-to-API

2 participants