Skip to content

Add Multi-Network Integration Test Matrix for Testnet and Mainnet Config #647

@Emmyt24

Description

@Emmyt24

title: Add Multi-Network Integration Test Matrix for Testnet and Mainnet Config

Description:
Create a configuration test matrix that validates both testnet and mainnet wiring without requiring unsafe live mainnet mutations.

Requirements and Context:

  • The app supports two networks but many checks are only implicitly testnet-focused
  • Production release confidence requires both configuration branches to be exercised
  • Must avoid destructive mainnet writes

Suggested Execution:
Fork and Branch

  • git checkout -b test/multi-network-config-matrix

Implement Changes::
Files to Edit:

  • frontend/src/config/stellar.ts - Expose testable config branches
  • backend/src/services/stellarEventListener.ts - Allow env-driven horizon assertions
  • scripts/verify-deployment.sh - Add network-aware validation mode

Files to Create:

  • frontend/src/test/integration/network-config-matrix.test.ts - Frontend network config tests
  • backend/src/__tests__/networkConfigMatrix.test.ts - Backend network config tests

Test

  • Verify testnet and mainnet URLs, passphrases, and explorer links are correct
  • Verify no friendbot or testnet-only logic leaks into mainnet mode
  • Verify missing mainnet contract IDs fail validation

Commit

  • git add .
  • git commit -m "test(integration): add multi-network configuration matrix tests"

Guidelines:

  • Treat mainnet as a first-class config path
  • Use read-only checks for live mainnet validation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions