Cover empty equals-style web port values

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-09 23:21:28 +00:00
1 parent 5757cd144c
commit 6afafe9c20
1 file changed
+6
+6
View File
@@ -96,6 +96,12 @@ describe("parseCliOptions", () => {
);
});
it("throws for empty equals-style web port values", () => {
expect(() => parseCliOptions(["--web-port="], {}, "/workspace")).toThrow(
"Invalid value for --web-port",
);
});
it("throws when backend port value is missing", () => {
expect(() => parseCliOptions(["--backend-port"], {}, "/workspace")).toThrow(
"Missing value for --backend-port",