You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor unit test DB infrastructure to use real migrations and getDb()
- Replaced manual database mocks and sql.js wrappers with a global better-sqlite3 mock (backed by sql.js to avoid ABI issues).
- Created tests/unit/setup.ts for centralized test environment and DB initialization.
- Updated all unit tests to use the actual getDb() singleton and standard SQLite API.
- Fixed a greedy regex bug in gemini-session-store.ts that failed on titles with parentheses.
- Expanded test coverage for token cost estimation and session list parsing.
- Removed redundant tests/unit/main/test-db.ts.
0 commit comments