Cover end-marker use after positional cwd selection

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 02:24:53 +00:00
1 parent d47b08fc99
commit 524c11709a
1 file changed
+6
+6
View File
@@ -330,6 +330,12 @@ describe("parseCliOptions", () => {
);
});
it("throws when end-of-options marker appears after positional cwd is already set", () => {
expect(() => parseCliOptions(["apps/renderer", "--", "apps/t3"], {}, "/workspace")).toThrow(
"Unexpected positional argument: apps/t3",
);
});
it("keeps ports unlocked when using defaults", () => {
const options = parseCliOptions([], {}, "/workspace");
expect(options.backendPortLocked).toBe(false);