Skip to content

Add component tests for components/providers/wallet-provider.tsx #749

Description

@Austinaminu2

Description

wallet-provider.tsx defines every wallet adapter (Freighter, xBull, LOBSTR, Albedo) and the ADAPTERS/WALLET_OPTIONS registry, but the provider component itself has zero test coverage (only lobstrAdapter has dedicated unit tests, in __tests__/lib/wallet-lobstr.test.ts).

Location

components/providers/wallet-provider.tsx

Task

Add tests for the context provider: connect/disconnect flow, persisted-connection restore on mount, and network-mismatch detection, mocking the underlying wallet SDKs.

Good for contributors because

Central piece of wallet integration with real risk of silent regressions — high-value coverage.

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 QAwalletWallet integration

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions