diff --git a/src/config/config.schema-regressions.test.ts b/src/config/config.schema-regressions.test.ts index 3a04d720714..4125cb1b3d4 100644 --- a/src/config/config.schema-regressions.test.ts +++ b/src/config/config.schema-regressions.test.ts @@ -164,4 +164,24 @@ describe("config schema regressions", () => { expect(res.issues[0]?.path).toBe("channels.imessage.attachmentRoots.0"); } }); + + it("accepts browser.extraArgs for proxy and custom flags", () => { + const res = validateConfigObject({ + browser: { + extraArgs: ["--proxy-server=http://127.0.0.1:7890"], + }, + }); + + expect(res.ok).toBe(true); + }); + + it("rejects browser.extraArgs with non-array value", () => { + const res = validateConfigObject({ + browser: { + extraArgs: "--proxy-server=http://127.0.0.1:7890" as unknown, + }, + }); + + expect(res.ok).toBe(false); + }); });