test(llm-judge): type the stream transport mock call

This commit is contained in:
garrytan committed 2026-10-01 00:38:28 +00:00
1 parent 852f999214
commit f16eed8c22
1 file changed
+1 -1
+1 -1
View File
@@ -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');