Cover invalid backend env port parsing in CLI tests

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-09 23:09:01 +00:00
1 parent a5b1268ad4
commit 8ba5a22d45
1 file changed
+6
+6
View File
@@ -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",