Skip to content

Commit 8c8d769

Browse files
anandgupta42claude
andcommitted
fix: remove branch type assertion from detectGit repo test
The "detects a git repository" test should only assert isRepo. Branch validation is handled by the dedicated branch test which accounts for CI detached HEAD returning undefined. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 24209bf commit 8c8d769

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

packages/altimate-code/test/tool/project-scan.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ describe("detectGit", () => {
4545
test("detects a git repository in the current repo", async () => {
4646
const result = await detectGit()
4747
expect(result.isRepo).toBe(true)
48-
expect(typeof result.branch).toBe("string")
4948
})
5049

5150
test("branch is a non-empty string or undefined (detached HEAD)", async () => {

0 commit comments

Comments
 (0)