From d63231a6ea747c1224ebee8f796ddf0aa1a1792a Mon Sep 17 00:00:00 2001 From: adil Date: Wed, 15 Apr 2026 03:07:12 +0530 Subject: [PATCH] fix(test): update autoCreateConfig test to use isGitRepo: true The test was mocking detectEnvironment with isGitRepo: false, which now correctly triggers the fail-fast error for non-git directories. Updated to isGitRepo: true since the test is verifying config generation defaults, not non-git behavior. Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/cli/__tests__/commands/start.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cli/__tests__/commands/start.test.ts b/packages/cli/__tests__/commands/start.test.ts index de47d8b80..46fbc45a1 100644 --- a/packages/cli/__tests__/commands/start.test.ts +++ b/packages/cli/__tests__/commands/start.test.ts @@ -1075,11 +1075,11 @@ describe("start command — autoCreateConfig", () => { it("generates config with empty notifiers array (no desktop notifier added by default)", async () => { const { detectEnvironment } = await import("../../src/lib/detect-env.js"); vi.mocked(detectEnvironment).mockResolvedValue({ - isGitRepo: false, + isGitRepo: true, gitRemote: null, ownerRepo: null, - currentBranch: null, - defaultBranch: null, + currentBranch: "main", + defaultBranch: "main", hasTmux: true, hasGh: false, ghAuthed: false,