Skip to content

test: integration tests for full stream → delivery pipeline` #10

Description

@cokehill

Summary

Unit tests cover individual functions, but we need integration tests that simulate a real
Stellar testnet event flowing through the full pipeline to a webhook receiver.

Acceptance criteria

  • Test harness spins up in-memory SQLite and the Express app
  • Mock Horizon SSE endpoint using nock or msw
  • Assert that a mocked payment event creates a delivery row with status = delivered
  • Assert webhook receiver (local http server in test) receives correct payload
  • Assert HMAC signature validates against shared secret
  • Assert retry fires after simulated 500 response from receiver
  • CI runs these tests via npm test without network access

Tech

Jest + supertest + nock.
Tests live in src/__tests__/integration/.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReliabilityRetry, resilience, error handlingTestingTests and coverage

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions