Expand unknown argument parser coverage
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
48d5f7263c
commit
81a80e7f06
1 file changed
+12
@@ -568,6 +568,18 @@ describe("parseCliOptions", () => {
|
||||
"Unknown argument: --wat",
|
||||
);
|
||||
});
|
||||
|
||||
it("throws for unknown equals-style arguments", () => {
|
||||
expect(() => parseCliOptions(["--wat=value"], {}, "/workspace")).toThrow(
|
||||
"Unknown argument: --wat=value",
|
||||
);
|
||||
});
|
||||
|
||||
it("throws for unknown short arguments", () => {
|
||||
expect(() => parseCliOptions(["-x"], {}, "/workspace")).toThrow(
|
||||
"Unknown argument: -x",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("readCliVersion", () => {
|
||||
|
||||
Reference in new issue
Block a user