()
| 5 | import { pgDb } from '../../src/utils/postgresDatabase.js'; |
| 6 | |
| 7 | function resetDbSingleton() { |
| 8 | db.initialized = false; |
| 9 | db.db = null; |
| 10 | db.useFallback = false; |
| 11 | db.connectionType = 'none'; |
| 12 | db.degradedModeWarningShown = false; |
| 13 | db.degradedReason = null; |
| 14 | } |
| 15 | |
| 16 | test('DB down path falls back to memory with degraded status', async () => { |
| 17 | const originalConnect = pgDb.connect; |
no outgoing calls
no test coverage detected