Skip to content

useSafeInfo has no tests: safe-address information loading is uncovered #895

Description

@nanaf6203-bit

useSafeInfo has no tests: safe-address information loading is uncovered

Labels / Complexity: testing · Trivial — Trivial

Summary

useSafeInfo (src/hooks/useSafeInfo.ts) loads Safe wallet information. It has no tests. A regression that fails to load or mis-reports safe state ships silently in the Safe-related UI.

Proposal

  • Add a spec covering loading, loaded, and error states with a stubbed data source.

Acceptance criteria

  • The spec asserts the safe-info state transitions; it passes via npm test.

Getting started

  • src/hooks/useSafeInfo.ts — the hook
  • src/hooks/__tests__/useToast.test.ts — the pattern

Commands: npm test.

Good first files to read: src/hooks/useSafeInfo.ts.

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 programTrivialtestingTest coverage or test reliability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions