gasPriceStore has no tests: cached gas-price state is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
gasPriceStore (src/store/gasPriceStore.ts) caches gas prices app-wide. It has no tests. A regression that serves stale prices or fails to update ships silently into transaction confirmation screens.
Proposal
- Add a spec covering set/update, staleness handling, and reset.
Acceptance criteria
- The spec asserts gas-price state updates; it passes via
npm test.
Getting started
src/store/gasPriceStore.ts — the store
src/store/__tests__/transactionStore.test.ts — the pattern
Commands: npm test.
Good first files to read: src/store/gasPriceStore.ts.
gasPriceStore has no tests: cached gas-price state is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
gasPriceStore(src/store/gasPriceStore.ts) caches gas prices app-wide. It has no tests. A regression that serves stale prices or fails to update ships silently into transaction confirmation screens.Proposal
Acceptance criteria
npm test.Getting started
src/store/gasPriceStore.ts— the storesrc/store/__tests__/transactionStore.test.ts— the patternCommands:
npm test.Good first files to read:
src/store/gasPriceStore.ts.