test(javascript): expect the invalid input_path code in the streamed CLI failure test
The acceptance test uses a missing input path only to produce a streamed JSON failure with a nonzero exit. The missing path is now an invalid input_path rather than an artifact io failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0a14bbbf05
commit
d186ca7e41
@@ -29,8 +29,8 @@ it("returns a nonzero exit for a streamed JSON analysis failure", async () => {
|
||||
);
|
||||
expect(result.code).toBe(1);
|
||||
expect(JSON.parse(result.stdout)).toMatchObject({
|
||||
code: "artifact_operation_failed",
|
||||
details: { reason: "io" },
|
||||
code: "invalid_request",
|
||||
details: { issues: [{ path: ["input_path"], reason: "invalid_value" }] },
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user