-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Description:
Allow replacing Soroban client and DB in tests via dependency injection or a test-only service locator so unit tests do not hit real RPC or DB.
Requirements
- Define interfaces or types for “SorobanClient” and “DbClient”; in production use real implementations from env
- In tests, inject mocks (e.g. mock Server that returns fixed invoke results)
- Refactor at least one route or lib/contracts module to use injected client; add one test that uses mock
- Document pattern for adding new tests
Acceptance Criteria
- DI or service locator in place
- At least one route/module refactored and tested with mock
- Documented
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program