Skip to content

Commit 3af0977

Browse files
authored
Fix tests failing when run from a git worktree (#13)
1 parent c49fa9b commit 3af0977

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/mob/integration_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ func setupTestRepo(t *testing.T) (string, string) {
4141

4242
tmpHome := t.TempDir()
4343
t.Setenv("HOME", tmpHome)
44+
t.Setenv("CODEMOB_MOB", "")
45+
t.Setenv("CODEMOB_SESSION", "")
4446

4547
// Create a fake claude binary that satisfies checkDependencies:
4648
// --version → prints a version string
@@ -1217,6 +1219,8 @@ func TestNewMobNoCommits(t *testing.T) {
12171219
// given -> a repo with no commits
12181220
tmpHome := t.TempDir()
12191221
t.Setenv("HOME", tmpHome)
1222+
t.Setenv("CODEMOB_MOB", "")
1223+
t.Setenv("CODEMOB_SESSION", "")
12201224

12211225
stubDir := filepath.Join(tmpHome, "bin")
12221226
os.MkdirAll(stubDir, 0755)

0 commit comments

Comments
 (0)