chore: Fix types in tests 43/N.

This commit is contained in:
cpojer
2026-02-17 15:48:44 +09:00
parent 7d2ef131c1
commit 688f86bf28
18 changed files with 81 additions and 84 deletions

View File

@@ -618,7 +618,8 @@ describe("Agent-specific tool filtering", () => {
yieldMs: 10,
});
expect(result?.details.status).toBe("completed");
const resultDetails = result?.details as { status?: string } | undefined;
expect(resultDetails?.status).toBe("completed");
});
it("should apply agent-specific exec host defaults over global defaults", async () => {
@@ -673,6 +674,7 @@ describe("Agent-specific tool filtering", () => {
host: "sandbox",
yieldMs: 1000,
});
expect(helperResult?.details.status).toBe("completed");
const helperDetails = helperResult?.details as { status?: string } | undefined;
expect(helperDetails?.status).toBe("completed");
});
});