Cover --open=off equals-value parsing
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
5bb68e21b5
commit
35e381dcbf
1 file changed
+5
@@ -103,6 +103,11 @@ describe("parseCliOptions", () => {
|
||||
expect(options.noOpen).toBe(false);
|
||||
});
|
||||
|
||||
it("supports equals-style --open off values", () => {
|
||||
const options = parseCliOptions(["--open=off"], {}, "/workspace");
|
||||
expect(options.noOpen).toBe(true);
|
||||
});
|
||||
|
||||
it("respects last flag when combining --open and --no-open", () => {
|
||||
const openThenNoOpen = parseCliOptions(["--open", "--no-open"], {}, "/workspace");
|
||||
expect(openThenNoOpen.noOpen).toBe(true);
|
||||
|
||||
Reference in new issue
Block a user