Skip to content

Commit da4e947

Browse files
committed
test(runner): verify runAgent returns correct CLI version
1 parent 1f1ce6c commit da4e947

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

__tests__/runner.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ describe("runAgent", () => {
9797
it("calls cursor-agent with correct base args", async () => {
9898
mockExec.mockResolvedValue(0);
9999

100-
await runAgent(baseInputs);
100+
const result = await runAgent(baseInputs);
101101

102+
expect(result.cliVersion).toBe("cursor-agent 9.9.9-test");
102103
expect(mockExec).toHaveBeenCalledWith(
103104
"cursor-agent",
104105
expect.arrayContaining(["chat", "Analyze this code", "--no-interactive"]),

0 commit comments

Comments
 (0)