Files
orca/src/main/runtime/headless-runtime-graph.spec.ts
T
Neil dcdf3860e1 ci: share runtime test imports and Node 18 preparation (#29300)
* ci: share runtime test imports and Node 18 preparation

* ci: run native plugin reconciliation on Node
2026-10-15 19:05:26 -07:00

20 lines
835 B
TypeScript

import { describe, expect, it, vi } from 'vitest'
import { OrcaRuntimeService } from './orca-runtime'
import { publishHeadlessRuntimeGraph } from './headless-runtime-graph'
export function registerHeadlessRuntimeGraphTests(): void {
describe('headless runtime graph', () => {
it('lets a session tab inventory settle on a host no renderer publishes for', async () => {
const runtime = new OrcaRuntimeService()
// oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: the inventory census reads only listProcesses.
runtime.setPtyController({ listProcesses: vi.fn(async () => []) } as never)
publishHeadlessRuntimeGraph(runtime)
await expect(runtime.listAllMobileSessionTabsInventory()).resolves.toEqual({
snapshots: [],
authoritative: true
})
})
})
}