Test missing backend and web port values

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-09 23:18:35 +00:00
1 parent 0cf6572336
commit b708a4ec89
1 file changed
+12
+12
View File
@@ -80,6 +80,18 @@ describe("parseCliOptions", () => {
);
});
it("throws when backend port value is missing", () => {
expect(() => parseCliOptions(["--backend-port"], {}, "/workspace")).toThrow(
"Missing value for --backend-port",
);
});
it("throws when web port value is missing", () => {
expect(() => parseCliOptions(["--web-port"], {}, "/workspace")).toThrow(
"Missing value for --web-port",
);
});
it("throws for invalid environment port values", () => {
expect(() => parseCliOptions([], { T3_WEB_PORT: "nope" }, "/workspace")).toThrow(
"Invalid value for T3_WEB_PORT",