Summary
useTransactionHistory contains the app's most intricate client logic (cursor pagination, in-memory cache, debounced refetch, operation parsing) yet has no test file, while simpler utilities are well covered.
Evidence
- No
useTransactionHistory.test.* exists under frontend/src.
- The hook has multiple latent bugs (see related issues: hardcoded network, broken pagination, filter-blind cache) that tests would have caught.
Suggested fix
Add unit tests with a mocked Horizon response covering: network selection, multi-page loadMore with cursors, cache hits/misses across filter changes, and parseOperation mapping for create/mint/burn. This pairs naturally with fixing the related bugs.
Summary
useTransactionHistorycontains the app's most intricate client logic (cursor pagination, in-memory cache, debounced refetch, operation parsing) yet has no test file, while simpler utilities are well covered.Evidence
useTransactionHistory.test.*exists underfrontend/src.Suggested fix
Add unit tests with a mocked Horizon response covering: network selection, multi-page
loadMorewith cursors, cache hits/misses across filter changes, andparseOperationmapping for create/mint/burn. This pairs naturally with fixing the related bugs.