Skip to content

The agent that grows with you

test(desktop): type the gateway mock forwarder in tutorial-lifetime.test.tsx (TS2554)

teknium1614b9b3f3c1e
diff --git a/apps/desktop/src/components/tips/tutorial-lifetime.test.tsx b/apps/desktop/src/components/tips/tutorial-lifetime.test.tsx
index 62870865806..b217e7370c0 100644
--- a/apps/desktop/src/components/tips/tutorial-lifetime.test.tsx
+++ b/apps/desktop/src/components/tips/tutorial-lifetime.test.tsx
@@ -12,7 +12,7 @@ vi.mock('@/store/gateway', async () => {
$gateway: atom<unknown>(null),
activeGateway: () => ({ request }),
activeGatewayProfileKey: () => 'default',
- requestGatewayForProfile: (_profile: string, method: string, params: unknown) => request(method, params)
+ requestGatewayForProfile: (_profile: string, ...call: unknown[]) => (request as (...args: unknown[]) => unknown)(...call)
}
})
vi.mock('@/store/session', async () => {