compareStore and comparisonStore have no tests: comparison selection state is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
compareStore (src/store/compareStore.ts) and comparisonStore (src/store/comparisonStore.ts) manage which properties are selected for comparison. Neither has tests. A regression that allows too many/too few selections or drops selection state ships silently in the compare UI.
Proposal
- Add specs covering add/remove selection, limits, and clear.
Acceptance criteria
- The specs assert selection limits and state transitions; they pass via
npm test.
Getting started
src/store/compareStore.ts, src/store/comparisonStore.ts
src/store/__tests__/transactionStore.test.ts — the pattern
Commands: npm test.
Good first files to read: src/store/compareStore.ts.
compareStore and comparisonStore have no tests: comparison selection state is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
compareStore(src/store/compareStore.ts) andcomparisonStore(src/store/comparisonStore.ts) manage which properties are selected for comparison. Neither has tests. A regression that allows too many/too few selections or drops selection state ships silently in the compare UI.Proposal
Acceptance criteria
npm test.Getting started
src/store/compareStore.ts,src/store/comparisonStore.tssrc/store/__tests__/transactionStore.test.ts— the patternCommands:
npm test.Good first files to read:
src/store/compareStore.ts.