From 850e14bc9e4f33d88a4e64653171ae3f4007679e Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 17 Jul 2025 22:15:26 -0700 Subject: [PATCH] fix type errs --- core/llm/llms/llmTestHarness.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/llm/llms/llmTestHarness.ts b/core/llm/llms/llmTestHarness.ts index 70deb8219..7dfadcd6e 100644 --- a/core/llm/llms/llmTestHarness.ts +++ b/core/llm/llms/llmTestHarness.ts @@ -50,12 +50,12 @@ export async function runLlmTest(testCase: LlmTestCase) { headers: new Headers({ "Content-Type": "text/event-stream", }), - }); + } as Response); } else { mockFetch.mockResolvedValue({ ok: true, json: () => Promise.resolve(mockResponse), - }); + } as Response); } // @ts-ignore @@ -78,7 +78,7 @@ export async function runLlmTest(testCase: LlmTestCase) { } expect(mockFetch).toHaveBeenCalledTimes(1); - const [url, options] = mockFetch.mock.calls[0]; + const [url, options] = mockFetch.mock.calls[0] as [string, RequestInit]; expect(url.toString()).toBe(expectedRequest.url); expect(options.method).toBe(expectedRequest.method);