Skip to content

notificationStore has no tests: unread-count and list state are uncovered #906

Description

@nanaf6203-bit

notificationStore has no tests: unread-count and list state are uncovered

Labels / Complexity: testing · Trivial — Trivial

Summary

notificationStore (src/store/notificationStore.ts) manages the notification list and unread count for the bell UI. It has no tests. A regression that mis-counts unread or drops new notifications ships silently in the notification bell.

Proposal

  • Add a spec covering add, mark-read (single and all), and unread-count derivation.

Acceptance criteria

  • The spec asserts list state and unread counts; it passes via npm test.

Getting started

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

Commands: npm test.

Good first files to read: src/store/notificationStore.ts.

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