useSafeInfo has no tests: safe-address information loading is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
useSafeInfo (src/hooks/useSafeInfo.ts) loads Safe wallet information. It has no tests. A regression that fails to load or mis-reports safe state ships silently in the Safe-related UI.
Proposal
- Add a spec covering loading, loaded, and error states with a stubbed data source.
Acceptance criteria
- The spec asserts the safe-info state transitions; it passes via
npm test.
Getting started
src/hooks/useSafeInfo.ts — the hook
src/hooks/__tests__/useToast.test.ts — the pattern
Commands: npm test.
Good first files to read: src/hooks/useSafeInfo.ts.
useSafeInfo has no tests: safe-address information loading is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
useSafeInfo(src/hooks/useSafeInfo.ts) loads Safe wallet information. It has no tests. A regression that fails to load or mis-reports safe state ships silently in the Safe-related UI.Proposal
Acceptance criteria
npm test.Getting started
src/hooks/useSafeInfo.ts— the hooksrc/hooks/__tests__/useToast.test.ts— the patternCommands:
npm test.Good first files to read:
src/hooks/useSafeInfo.ts.