test(cloud): #568 spawn-gate test mock takes the start arguments (typecheck)

This commit is contained in:
Neil
2026-11-12 15:17:21 -08:00
parent 6a9a81e370
commit f6701f1f44
@@ -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)