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.
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
Acceptance criteria
npm test.Getting started
src/store/notificationStore.ts— the storesrc/store/__tests__/transactionStore.test.ts— the patternCommands:
npm test.Good first files to read:
src/store/notificationStore.ts.