chore: Fix types in tests 41/N.

This commit is contained in:
cpojer
2026-02-17 15:48:16 +09:00
parent 3dc8d5656d
commit 6264c5e842
17 changed files with 81 additions and 43 deletions

View File

@@ -70,8 +70,11 @@ function mockGatewaySuccessReply(text = "hello") {
function mockLocalAgentReply(text = "local") {
vi.mocked(agentCommand).mockImplementationOnce(async (_opts, rt) => {
rt.log?.(text);
return { payloads: [{ text }], meta: { stub: true } };
rt?.log?.(text);
return {
payloads: [{ text }],
meta: { durationMs: 1, agentMeta: { sessionId: "s", provider: "p", model: "m" } },
} as unknown as Awaited<ReturnType<typeof agentCommand>>;
});
}