test: add tests for council config schema, prompt content, and config injection

This commit is contained in:
ismeth
2026-02-26 12:48:04 +01:00
committed by YeonGyu-Kim
parent 3dd378fce6
commit a30d0a1427
4 changed files with 168 additions and 1 deletions
@@ -9,6 +9,10 @@ describe("council-member-agents", () => {
{ model: "openai/gpt-5.3-codex", name: "GPT" },
{ model: "anthropic/claude-opus-4-6", name: "gpt" },
],
retry_on_fail: 0,
retry_failed_if_others_finished: false,
cancel_retrying_on_quorum: true,
stuck_threshold_seconds: 120,
}
//#when
const result = registerCouncilMemberAgents(config)
@@ -24,6 +28,10 @@ describe("council-member-agents", () => {
{ model: "openai/gpt-5.3-codex", name: "GPT" },
{ model: "anthropic/claude-opus-4-6", name: "Claude" },
],
retry_on_fail: 0,
retry_failed_if_others_finished: false,
cancel_retrying_on_quorum: true,
stuck_threshold_seconds: 120,
}
//#when
const result = registerCouncilMemberAgents(config)
@@ -40,6 +48,10 @@ describe("council-member-agents", () => {
{ model: "openai/gpt-5.3-codex", name: "GPT Codex" },
{ model: "openai/gpt-5.3-codex", name: "Codex GPT" },
],
retry_on_fail: 0,
retry_failed_if_others_finished: false,
cancel_retrying_on_quorum: true,
stuck_threshold_seconds: 120,
}
//#when
const result = registerCouncilMemberAgents(config)
@@ -56,6 +68,10 @@ describe("council-member-agents", () => {
{ model: "openai/gpt-5.3-codex", name: "GPT" },
{ model: "invalid-no-slash", name: "Invalid" },
],
retry_on_fail: 0,
retry_failed_if_others_finished: false,
cancel_retrying_on_quorum: true,
stuck_threshold_seconds: 120,
}
//#when
const result = registerCouncilMemberAgents(config)