Skip to content

recentlyViewedStore has no tests: recent-properties state is uncovered #910

Description

@nanaf6203-bit

recentlyViewedStore has no tests: recent-properties state is uncovered

Labels / Complexity: testing · Trivial — Trivial

Summary

recentlyViewedStore (src/store/recentlyViewedStore.ts) tracks recently viewed properties. It has no tests. A regression that loses history on reload or duplicates entries ships silently in the "recently viewed" UI.

Proposal

  • Add a spec covering add, dedupe, cap, and persistence.

Acceptance criteria

  • The spec asserts record/dedupe/cap behavior; it passes via npm test.

Getting started

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

Commands: npm test.

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