mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
Five unit tests crashed because they imported modules that transitively reached db/index.ts, which eagerly calls `new Database()` at module load time. Added vi.mock for db/index.js matching the pattern used by 16 other passing API unit tests. Moved cleanup.test.ts to tests/integration/ since it uses a real SQLite database, runs migrations, and inserts rows.