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