From f6701f1f440199834d58df6db80186c8cc2d764c Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 12 Nov 2026 15:17:21 -0800 Subject: [PATCH] test(cloud): #568 spawn-gate test mock takes the start arguments (typecheck) --- .../spawn/cloud-agent-credential-spawn-gate.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/components/terminal-pane/pty-connection/spawn/cloud-agent-credential-spawn-gate.test.ts b/src/renderer/src/components/terminal-pane/pty-connection/spawn/cloud-agent-credential-spawn-gate.test.ts index f7aa4c23e7c..09eda2ed78d 100644 --- a/src/renderer/src/components/terminal-pane/pty-connection/spawn/cloud-agent-credential-spawn-gate.test.ts +++ b/src/renderer/src/components/terminal-pane/pty-connection/spawn/cloud-agent-credential-spawn-gate.test.ts @@ -37,7 +37,7 @@ const { installCloudAgentCredentialGate } = await import('./cloud-agent-credenti const flush = () => new Promise((resolve) => setTimeout(resolve, 0)) function session() { - const start = vi.fn(async () => 'pty-1') + const start = vi.fn(async (_startup?: unknown, _options?: unknown) => 'pty-1') const value = { startFreshSpawn: start, disposed: false, pendingSpawnKey: 'k', tabGeneration: 1 } // oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: the gate reads only these fields installCloudAgentCredentialGate(value as unknown as ConnectPanePtySession)