Session 21: All adapters through gateway, ntfy alerts, provider registry correction (1486 tests)

This commit is contained in:
Kev
2026-06-12 02:06:22 -04:00
parent 9b10bb4138
commit ea848e327e
14 changed files with 614 additions and 46 deletions
+5
View File
@@ -9,6 +9,11 @@ jest.mock('../../src/utils/redis', () => ({
cacheGet: async (k) => mockCache.current.get(k) ?? null,
cacheSet: async (k, v) => { mockCache.current.set(k, v); return true; },
cacheDel: async (k) => { mockCache.current.delete(k); return true; },
// Session 21 — gateway pulls isDegraded to decide whether to track
// the call. Returning true here puts the gateway in degraded-mode
// fail-open so the adapter's existing cache-and-axios assertions
// stay accurate (no extra Redis writes for the quota counter).
isDegraded: () => true,
}));
const adapter = require('../../src/services/adapters/parlayApiAdapter');