Skip to content

favoritesStore has no tests: favorite toggle and persistence are uncovered #901

Description

@nanaf6203-bit

favoritesStore has no tests: favorite toggle and persistence are uncovered

Labels / Complexity: testing · Trivial — Trivial

Summary

favoritesStore (src/store/favoritesStore.ts) manages saved-favorite properties. It has no tests. A regression that loses favorites on reload (persistence) or fails to toggle ships silently in the favorites UI.

Proposal

  • Add a spec covering toggle, persistence, and empty-state behavior.

Acceptance criteria

  • The spec asserts toggle and persistence behavior; it passes via npm test.

Getting started

  • src/store/favoritesStore.ts — the store
  • src/store/__tests__/transactionStore.test.ts — the pattern

Commands: npm test.

Good first files to read: src/store/favoritesStore.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