Cover falsey T3_NO_OPEN environment parsing
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
0e775333a0
commit
b16ca1c9ee
1 file changed
+11
@@ -81,6 +81,17 @@ describe("parseCliOptions", () => {
|
||||
expect(options.noOpen).toBe(true);
|
||||
});
|
||||
|
||||
it("treats falsey T3_NO_OPEN values as disabled", () => {
|
||||
const options = parseCliOptions(
|
||||
[],
|
||||
{
|
||||
T3_NO_OPEN: "off",
|
||||
},
|
||||
"/workspace",
|
||||
);
|
||||
expect(options.noOpen).toBe(false);
|
||||
});
|
||||
|
||||
it("accepts trimmed uppercase truthy values for T3_NO_OPEN", () => {
|
||||
const options = parseCliOptions(
|
||||
[],
|
||||
|
||||
Reference in new issue
Block a user