mirror of
https://github.com/morluto/rea.git
synced 2026-11-12 01:41:21 +00:00
test(cli): expect a failed exit for an unavailable Cutter session (#10117)
An unavailable session is a typed invalid_request. The CLI treats that projection as an operation failure and exits 1. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
1 parent
ab84ba6839
commit
c5c1ff45fa
1 file changed
+10
@@ -187,6 +187,16 @@ describe("Cutter CLI commands", () => {
|
||||
expect(result.exitCode).toBe(1);
|
||||
expect(JSON.parse(result.stdout)).toMatchObject({
|
||||
code: "invalid_request",
|
||||
details: {
|
||||
operation: "cutter_command",
|
||||
issues: [
|
||||
{
|
||||
path: ["session_id"],
|
||||
message:
|
||||
"Cutter bridge session is unavailable or stale; list sessions again and select an available session.",
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user