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) <noreply@anthropic.com>
This commit is contained in:
parent
c8af50fac2
commit
d63231a6ea
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue