Cover missing --cwd value parsing error
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
b708a4ec89
commit
37cd2b696b
1 file changed
+6
@@ -110,6 +110,12 @@ describe("parseCliOptions", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("throws when cwd flag value is missing", () => {
|
||||
expect(() => parseCliOptions(["--cwd"], {}, "/workspace")).toThrow(
|
||||
"Missing value for --cwd",
|
||||
);
|
||||
});
|
||||
|
||||
it("throws for whitespace-only cwd flag values", () => {
|
||||
expect(() => parseCliOptions(["--cwd", " "], {}, "/workspace")).toThrow(
|
||||
"Invalid value for --cwd",
|
||||
|
||||
Reference in new issue
Block a user