test(tmux): add missing tmux exports to zombie-pane mock module
This commit is contained in:
@@ -40,10 +40,22 @@ mock.module("./action-executor", () => ({
|
|||||||
mock.module("../../shared/tmux", () => ({
|
mock.module("../../shared/tmux", () => ({
|
||||||
isInsideTmux: mockIsInsideTmux,
|
isInsideTmux: mockIsInsideTmux,
|
||||||
getCurrentPaneId: mockGetCurrentPaneId,
|
getCurrentPaneId: mockGetCurrentPaneId,
|
||||||
|
isServerRunning: mock(async () => true),
|
||||||
|
resetServerCheck: mock(() => {}),
|
||||||
|
markServerRunningInProcess: mock(() => {}),
|
||||||
|
getPaneDimensions: mock(async () => ({ width: 220, height: 44 })),
|
||||||
|
spawnTmuxPane: mock(async () => ({ success: true, paneId: "%1" })),
|
||||||
|
closeTmuxPane: mock(async () => ({ success: true })),
|
||||||
|
replaceTmuxPane: mock(async () => ({ success: true, paneId: "%1" })),
|
||||||
|
spawnTmuxWindow: mock(async () => ({ success: true, windowId: "@1" })),
|
||||||
|
spawnTmuxSession: mock(async () => ({ success: true, sessionId: "mock" })),
|
||||||
|
applyLayout: mock(async () => ({ success: true })),
|
||||||
|
enforceMainPaneWidth: mock(async () => ({ success: true })),
|
||||||
POLL_INTERVAL_BACKGROUND_MS: 10,
|
POLL_INTERVAL_BACKGROUND_MS: 10,
|
||||||
SESSION_READY_POLL_INTERVAL_MS: 10,
|
SESSION_READY_POLL_INTERVAL_MS: 10,
|
||||||
SESSION_READY_TIMEOUT_MS: 50,
|
SESSION_READY_TIMEOUT_MS: 50,
|
||||||
SESSION_MISSING_GRACE_MS: 1_000,
|
SESSION_MISSING_GRACE_MS: 1_000,
|
||||||
|
SESSION_TIMEOUT_MS: 600_000,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
afterAll(() => { mock.restore() })
|
afterAll(() => { mock.restore() })
|
||||||
|
|||||||
Reference in New Issue
Block a user