mirror of
https://github.com/stablyai/orca.git
synced 2026-10-24 08:03:58 +00:00
fix(tests): type the parked-pane resume mock with the real record shape
The local mock declared Record<string, { paneKey: string }> while the test
builds a full SleepingAgentSessionRecord, so typecheck rejected the extra
properties.
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import type { ParkedTerminalByteWatcherOptions } from './parked-terminal-byte-watcher'
|
||||
import type * as ParkedTerminalCommandStatus from './parked-terminal-command-status'
|
||||
import type { SleepingAgentSessionRecord } from '../../../../shared/agent-session-resume'
|
||||
|
||||
const PTY_ID = 'pty-parked-exit'
|
||||
const TAB_ID = 'tab-1'
|
||||
@@ -19,7 +20,7 @@ type MockStoreState = {
|
||||
setCacheTimerStartedAt: ReturnType<typeof vi.fn>
|
||||
observeTerminalGitHubPullRequestLink: ReturnType<typeof vi.fn>
|
||||
agentStatusByPaneKey: Record<string, never>
|
||||
sleepingAgentSessionsByPaneKey: Record<string, { paneKey: string }>
|
||||
sleepingAgentSessionsByPaneKey: Record<string, SleepingAgentSessionRecord>
|
||||
clearSleepingAgentSession: ReturnType<typeof vi.fn>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user