Split off from #2130.
History persistence in client/modules/history.ts is untested. The Dexie CRUD helpers (addSearchToHistory, getRecentSearches, and friends) have no coverage.
Task: Add tests using fake-indexeddb so they run in jsdom. Cover add/read/round-trip of the history entries.
Pattern to follow: server/webSearchService.test.ts (mock only at the boundary, assert real behavior).
Good first issue: self-contained module, runs in jsdom, no server setup needed.
Split off from #2130.
History persistence in
client/modules/history.tsis untested. The Dexie CRUD helpers (addSearchToHistory,getRecentSearches, and friends) have no coverage.Task: Add tests using
fake-indexeddbso they run in jsdom. Cover add/read/round-trip of the history entries.Pattern to follow:
server/webSearchService.test.ts(mock only at the boundary, assert real behavior).Good first issue: self-contained module, runs in jsdom, no server setup needed.