Skip to content

[Testing] Add Soroban mock blockchain layer for contract interaction testing - #48

Open
leanworld7-netizen wants to merge 2 commits into
EquipChain:mainfrom
leanworld7-netizen:feature/testing-infrastructure-5
Open

[Testing] Add Soroban mock blockchain layer for contract interaction testing#48
leanworld7-netizen wants to merge 2 commits into
EquipChain:mainfrom
leanworld7-netizen:feature/testing-infrastructure-5

Conversation

@leanworld7-netizen

Copy link
Copy Markdown

Mock Blockchain Layer (Contributes to #5)

Issue #5 asks for a mock blockchain layer to simulate Soroban interactions.
The existing test suite covers unit and integration tests but lacks this component.

Added

  • SorobanMock: configurable responses for getContractData, simulateTransaction, sendTransaction, getTransactionStatus
  • Error modes for testing failure states
  • Call logging for verifying contract interactions
  • Reset functionality for test isolation
  • Unit tests using node:test (matches existing test infrastructure)

No new dependencies required.

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.

1 participant