fix(desktop): typecheck fixes for salvaged tests (afterEach import, routed-request mock typing)

This commit is contained in:
Teknium
2026-08-25 15:40:37 -07:00
parent 9730bc78ff
commit 57876f4b71
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -132,7 +132,10 @@ describe('requestModelOptions', () => {
const gateway = {
request: vi.fn(() => Promise.resolve(gatewayPayload))
}
const request = vi.fn(() => Promise.resolve(routedPayload))
const request = vi.fn(() => Promise.resolve(routedPayload)) as unknown as <T>(
method: string,
params?: Record<string, unknown>
) => Promise<T>
await expect(
requestModelOptions({ gateway: gateway as never, request, sessionId: 'tile-1' })
@@ -1,4 +1,4 @@
import { beforeEach, describe, expect, it } from 'vitest'
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
import { createClientSessionState } from '@/lib/chat-runtime'
import {