Cover -o=true override of T3_NO_OPEN env

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 02:42:43 +00:00
1 parent cbb0476d29
commit 814f075ddc
1 file changed
+5
+5
View File
@@ -100,6 +100,11 @@ describe("parseCliOptions", () => {
expect(disabled.noOpen).toBe(true);
});
it("lets -o=true override truthy no-open environment defaults", () => {
const options = parseCliOptions(["-o=true"], { T3_NO_OPEN: "yes" }, "/workspace");
expect(options.noOpen).toBe(false);
});
it("supports explicit equals-style --open boolean overrides", () => {
const options = parseCliOptions(
["--open=false"],