Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import { createElement } from 'react'
import { act, create, type ReactTestRenderer } from 'react-test-renderer'
export function hookMount(render: () => void) {
let renderer: ReactTestRenderer | undefined
function Harness() {
render()
return null
}
return {
mount() {
act(() => {
renderer = create(createElement(Harness))
})
},
update() {
act(() => {
renderer?.update(createElement(Harness))
})
},
unmount() {
act(() => {
renderer?.unmount()
renderer = undefined
})
}
}
}
export function performHookAction<T>(action: () => T): T {
let result!: T
act(() => {
result = action()
})
return result
}