Cover backend env port upper-bound validation

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 00:46:01 +00:00
1 parent be9c7df998
commit f86860cff2
1 file changed
+6
+6
View File
@@ -223,6 +223,12 @@ describe("parseCliOptions", () => {
);
});
it("throws for out-of-range backend environment port values", () => {
expect(() => parseCliOptions([], { T3_BACKEND_PORT: "65536" }, "/workspace")).toThrow(
"Invalid value for T3_BACKEND_PORT",
);
});
it("throws for invalid backend environment port values", () => {
expect(() => parseCliOptions([], { T3_BACKEND_PORT: "nope" }, "/workspace")).toThrow(
"Invalid value for T3_BACKEND_PORT",