Skip to content

Add unit tests for lib/contract.ts #731

Description

@Austinaminu2

Description

lib/contract.ts is the largest untested file in lib/ — it wraps every RPC/contract call the frontend makes (mock-mode and live), but has zero unit test coverage.

Location

lib/contract.ts

Task

Add unit tests for the mock-mode code paths at minimum (simulate, submit, poll helpers), mocking fetch/RPC calls as needed. Live-network paths can be covered incrementally.

Good for contributors because

High-value coverage gap — this file backs nearly every write operation in the app.

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programfrontendNext.js frontendtestingTests and QA

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions