Cover --open=true equals-value parsing
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
9be9837d48
commit
86e541a697
1 file changed
+11
@@ -92,6 +92,17 @@ describe("parseCliOptions", () => {
|
||||
expect(options.noOpen).toBe(true);
|
||||
});
|
||||
|
||||
it("supports equals-style --open true values", () => {
|
||||
const options = parseCliOptions(
|
||||
["--open=true"],
|
||||
{
|
||||
T3_NO_OPEN: "true",
|
||||
},
|
||||
"/workspace",
|
||||
);
|
||||
expect(options.noOpen).toBe(false);
|
||||
});
|
||||
|
||||
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