test(adb): expect the CLI key for a refused output directory (#11432)

This commit is contained in:
morluto authored and GitHub committed 2026-11-16 04:12:27 +08:00
1 parent 3bbc13772c
commit 1b8ffaa37c
1 file changed
+2 -1
@@ -91,12 +91,13 @@ it.skipIf(process.platform === "win32")(
);
expect(cli.status).toBe(1);
expect(cli.stderr).toBe("");
// The CLI names the refused field by its option key.
expect(JSON.parse(cli.stdout)).toMatchObject({
code: "invalid_request",
details: {
issues: [
{
path: ["output_directory"],
path: ["output-directory"],
reason: "invalid_value",
observed: { path: output, code: hostCode },
},