Cover invalid backend env port parsing in CLI tests
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
a5b1268ad4
commit
8ba5a22d45
1 file changed
+6
@@ -86,6 +86,12 @@ describe("parseCliOptions", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("throws for invalid backend environment port values", () => {
|
||||
expect(() => parseCliOptions([], { T3_BACKEND_PORT: "nope" }, "/workspace")).toThrow(
|
||||
"Invalid value for T3_BACKEND_PORT",
|
||||
);
|
||||
});
|
||||
|
||||
it("throws for empty cwd flag values", () => {
|
||||
expect(() => parseCliOptions(["--cwd="], {}, "/workspace")).toThrow(
|
||||
"Invalid value for --cwd",
|
||||
|
||||
Reference in new issue
Block a user