mirror of
https://github.com/stablyai/orca.git
synced 2026-11-01 17:47:40 +00:00
* ci: share runtime test imports and Node 18 preparation * ci: run native plugin reconciliation on Node
20 lines
835 B
TypeScript
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
|
|
})
|
|
})
|
|
})
|
|
}
|