Files
orca/src/main/ipc/pty-ipc-test-surface.ts
T
mirror 34fa2cd5ca
Skill update round trip / roundtrip (false, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, latest) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
source snapshot 2026-09-02
2026-09-02 02:03:16 +08:00

22 lines
681 B
TypeScript

import type { PtyIpcSurface } from './pty-host-bindings'
import {
handleMock,
onMock,
removeAllListenersMock,
removeHandlerMock
} from './pty-ipc-mock-registry'
/**
* The registration surface pty suites drive. Production injects Electron's `ipcMain`;
* suites inject this so the existing `handlers` map keeps capturing registrations
* exactly as it did when the module imported `ipcMain` directly.
*/
export function testPtyIpcSurface(): PtyIpcSurface {
return {
handle: handleMock as unknown as PtyIpcSurface['handle'],
on: onMock as unknown as PtyIpcSurface['on'],
removeHandler: removeHandlerMock,
removeAllListeners: removeAllListenersMock
}
}