Cover T3_NO_OPEN off-value environment parsing
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
bb152c985c
commit
3f59add5b4
1 file changed
+11
@@ -162,6 +162,17 @@ describe("parseCliOptions", () => {
|
||||
expect(options.noOpen).toBe(false);
|
||||
});
|
||||
|
||||
it("treats off as disabled T3_NO_OPEN value", () => {
|
||||
const options = parseCliOptions(
|
||||
[],
|
||||
{
|
||||
T3_NO_OPEN: "off",
|
||||
},
|
||||
"/workspace",
|
||||
);
|
||||
expect(options.noOpen).toBe(false);
|
||||
});
|
||||
|
||||
it("allows command line arguments to override defaults", () => {
|
||||
const options = parseCliOptions(
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user