SnapOtter
5b3b3c7632
fix(test): mock db/index.js in unit tests that import API modules
...
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.
2026-06-09 23:34:36 +08:00
..
2026-05-09 09:02:29 +08:00
2026-05-13 14:18:49 +08:00
2026-06-08 19:32:00 +08:00
2026-04-29 23:47:19 +08:00
2026-04-26 12:03:08 +08:00
2026-06-04 22:22:40 +08:00
2026-06-06 19:37:29 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-06-09 23:34:36 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 07:35:27 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-05-06 21:38:12 +08:00
2026-05-20 14:45:45 +08:00
2026-06-09 23:34:36 +08:00
2026-05-09 07:35:27 +08:00
2026-05-13 21:33:50 +08:00
2026-05-09 09:02:29 +08:00
2026-06-06 19:37:29 +08:00
2026-05-09 07:35:27 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 13:03:57 +08:00
2026-05-09 13:03:57 +08:00
2026-05-11 22:48:05 +08:00
2026-05-08 16:01:46 +08:00
2026-04-06 12:53:53 +08:00
2026-04-23 17:12:02 +08:00
2026-05-09 07:35:27 +08:00
2026-06-09 23:34:36 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-06-09 23:34:36 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-06-06 20:27:48 +08:00
2026-06-06 16:05:59 +08:00
2026-05-09 07:35:27 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 07:35:27 +08:00
2026-06-07 10:43:52 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-04-22 18:10:04 +08:00
2026-06-06 21:51:43 +08:00
2026-05-09 09:02:29 +08:00