From d161e0b9873894c76f82799a025cd312ae123b0d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 01:37:20 +0000 Subject: [PATCH] Cover validateLaunchDirectory relative cwd resolution Co-authored-by: Theo Browne --- apps/t3/src/cli.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index a30faeaac7..e46822c2f4 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -463,6 +463,10 @@ describe("validateLaunchDirectory", () => { expect(validateLaunchDirectory(tempDir)).toBe(path.resolve(tempDir)); }); + it("resolves relative directory paths against process cwd", () => { + expect(validateLaunchDirectory(".")).toBe(path.resolve(".")); + }); + it("throws for missing launch directories", () => { const missing = path.join(os.tmpdir(), `t3-missing-dir-${Date.now()}`); expect(() => validateLaunchDirectory(missing)).toThrow("Launch directory does not exist");