mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 17:37:40 +00:00
Document minimal runtime test fixture assertions
This commit is contained in:
@@ -117,6 +117,7 @@ describe('remote runtime request connection integration', () => {
|
||||
]
|
||||
const clientEventListeners = new Set<(event: RuntimeClientEvent) => void>()
|
||||
const subscriptionCleanups = new Map<string, () => void>()
|
||||
// oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: this socket fixture implements every runtime method used by client-events subscribe and repo.list.
|
||||
const runtime = {
|
||||
configureNotificationDismissalStore: () => {},
|
||||
getRuntimeId: () => 'events-runtime-test',
|
||||
@@ -285,6 +286,7 @@ describe('remote runtime request connection integration', () => {
|
||||
listener(event)
|
||||
}
|
||||
}
|
||||
// oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: this sleep socket fixture implements every runtime method reached by its subscriptions and list requests.
|
||||
const runtime = {
|
||||
configureNotificationDismissalStore: () => {},
|
||||
getRuntimeId: () => 'remote-sleep-runtime-test',
|
||||
|
||||
@@ -60,7 +60,7 @@ it.each(['accepted', 'pending', 'oldest'] as const)(
|
||||
)
|
||||
},
|
||||
{
|
||||
// SAFETY: the installed-host path does not read the runtime.
|
||||
// oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: the installed-host registry path never reads runtime methods.
|
||||
runtime: {} as RpcContext['runtime'],
|
||||
clientId: QUEUED_RIG_CALLER.callerKey,
|
||||
clientKind: 'runtime',
|
||||
|
||||
Reference in New Issue
Block a user