Skip to content

testing: add unit tests for useCurrencyConverter #464

Description

@nanaf6203-bit

Summary

src/hooks/useCurrencyConverter.ts has no tests even though it touches rate fetching, caching, and storage.

Affected area

src/hooks/useCurrencyConverter.ts

Steps to reproduce

There is no test file.

Expected behaviour

Cover fetch failures, stale data, network reconnect, and storage re-hydration.

Acceptance criteria

  • Branch coverage ≥85 %.

Activity

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

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programpriority/p2P2 — medium prioritytestingTest coverage or test reliability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions