fix: widen requestGateway mock signature for typecheck (follow-up for salvaged PR #69689)

This commit is contained in:
teknium1 2026-07-24 22:34:41 -07:00 committed by Teknium
parent 062d261955
commit fd29ce5102

View file

@ -1171,7 +1171,7 @@ describe('usePromptActions submit / queue drain semantics', () => {
// the queue entry. The drain must instead go through session.resume to
// rebind the correct runtime before submitting.
const requestGateway = vi.fn(
async (method: string) =>
async (method: string, _params?: Record<string, unknown>, _timeoutMs?: number) =>
(method === 'session.resume' ? { session_id: 'rt-session-a-rebound' } : {}) as never
)