Cover trimmed equals-style --no-open parsing
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
2fbf261d52
commit
6ce75a0b3a
1 file changed
+5
@@ -92,6 +92,11 @@ describe("parseCliOptions", () => {
|
||||
expect(options.noOpen).toBe(true);
|
||||
});
|
||||
|
||||
it("trims equals-style --no-open values before parsing", () => {
|
||||
const options = parseCliOptions(["--no-open= no "], { T3_NO_OPEN: "true" }, "/workspace");
|
||||
expect(options.noOpen).toBe(false);
|
||||
});
|
||||
|
||||
it("parses case-insensitive and trimmed T3_NO_OPEN truthy values", () => {
|
||||
const options = parseCliOptions(
|
||||
[],
|
||||
|
||||
Reference in new issue
Block a user