Document minimal runtime test fixture assertions

This commit is contained in:
Brennan Benson
2026-10-30 14:43:36 -07:00
parent e4d038cf0b
commit 254f751ef3
2 changed files with 3 additions and 1 deletions
@@ -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',