Cover backend env port upper-bound validation
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
be9c7df998
commit
f86860cff2
1 file changed
+6
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user