diff --git a/src/renderer/src/lib/runtime-session-mirror-unverifiable-host.test.ts b/src/renderer/src/lib/runtime-session-mirror-unverifiable-host.test.ts index 9b7345e0374..ce4e3c06b4b 100644 --- a/src/renderer/src/lib/runtime-session-mirror-unverifiable-host.test.ts +++ b/src/renderer/src/lib/runtime-session-mirror-unverifiable-host.test.ts @@ -21,7 +21,7 @@ function makeStatus(runtimeId: string): RuntimeStatus { liveLeafCount: 0, runtimeProtocolVersion: 3, minCompatibleRuntimeClientVersion: 3 - } as RuntimeStatus + } } function makeSnapshot( @@ -115,7 +115,15 @@ describe('mirror targets and host connection state agree on one host', () => { }) it('drops the mirror target when the control channel closed', () => { - const closed = { state: 'closed' } as NonNullable + const closed: NonNullable = { + state: 'closed', + pendingRequestCount: 0, + subscriptionCount: 0, + reconnectAttempt: 0, + lastConnectedAt: null, + lastClose: null, + lastError: null + } const entry = { ...entryForSnapshot(makeSnapshot({ verification: 'verified' })), remoteControl: closed diff --git a/src/renderer/src/store/slices/runtime-status-reconnect-connection-generation.test.ts b/src/renderer/src/store/slices/runtime-status-reconnect-connection-generation.test.ts index 7a327222727..e682b2be2f2 100644 --- a/src/renderer/src/store/slices/runtime-status-reconnect-connection-generation.test.ts +++ b/src/renderer/src/store/slices/runtime-status-reconnect-connection-generation.test.ts @@ -21,6 +21,7 @@ type Store = ReturnType function createSliceStore() { return create()((...a) => ({ + // oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: the slice creator is declared against the whole AppState; this store holds only its own slice, which is all the code under test reads. ...createRuntimeStatusSlice(...(a as unknown as Parameters)) })) } @@ -35,7 +36,7 @@ function makeStatus(runtimeId: string): RuntimeStatus { liveLeafCount: 0, runtimeProtocolVersion: 3, minCompatibleRuntimeClientVersion: 3 - } as RuntimeStatus + } } function makeSnapshot( @@ -55,6 +56,7 @@ function makeSnapshot( /** The mirror-subscription effect dependency, rebuilt from the slice's current state. */ function mirrorKey(store: Store): string { + // oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: the builder takes the whole app state; only the fields below reach the mirror-target scan. return buildRuntimeSessionMirrorEnvironmentKey({ activeRuntimeEnvironmentId: ENVIRONMENT_ID, repos: [],