Cover unknown T3_NO_OPEN value handling
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
aa016aa047
commit
c1bec99a7a
1 file changed
+11
@@ -92,6 +92,17 @@ describe("parseCliOptions", () => {
|
||||
expect(options.noOpen).toBe(false);
|
||||
});
|
||||
|
||||
it("treats unknown T3_NO_OPEN values as disabled", () => {
|
||||
const options = parseCliOptions(
|
||||
[],
|
||||
{
|
||||
T3_NO_OPEN: "sometimes",
|
||||
},
|
||||
"/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