import * as fs from "node:fs"; import * as path from "node:path"; import * as os from "node:os"; import { IdeationAgent } from "../agents/ideation-agent.js"; describe("IdeationAgent", () => { it("agent name is ideation-agent", () => { const agent = new IdeationAgent(); expect(agent.name).toBe("ideation-agent"); }); it("workflow is research", () => { const agent = new IdeationAgent(); expect(agent.workflow).toBe("research"); }); it("delegates mechanicalIdeate to IdeationEngine", () => { const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "ciagent-agent-test-")); try { const agent = new IdeationAgent(); const ideas = agent.mechanicalIdeate(tempDir); expect(Array.isArray(ideas)).toBe(true); } finally { fs.rmSync(tempDir, { recursive: true, force: true }); } }); });