From f16eed8c222d4228bf96b937ca4fffcb7c7ef9c2 Mon Sep 17 00:00:00 2001 From: garrytan Date: Thu, 1 Oct 2026 00:38:28 +0000 Subject: [PATCH] test(llm-judge): type the stream transport mock call --- test/llm-judge-stream.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/llm-judge-stream.test.ts b/test/llm-judge-stream.test.ts index 1087dea0f..589571e75 100644 --- a/test/llm-judge-stream.test.ts +++ b/test/llm-judge-stream.test.ts @@ -52,7 +52,7 @@ test('effort reaches the wire beside the response schema and is absent unless re }); await callJudge('score the whole bundle', 'claude-fable-5-1', { max_tokens: 65_536, stream: true, effort: 'medium' }); await callJudge('score the whole bundle', 'claude-fable-5-1', { max_tokens: 65_536, stream: true }); - const bodies = transport.mock.calls.map(call => JSON.parse(call[1].body)); + const bodies = transport.mock.calls.map((call: any[]) => JSON.parse(call[1].body)); expect(bodies[0].output_config).toEqual({ format: { type: 'json_schema', schema: WORKFLOW_JUDGE_RESPONSE_SCHEMA }, effort: 'medium' }); expect(bodies[1].output_config).toEqual({ effort: 'medium' }); expect(bodies[2]).not.toHaveProperty('output_config');