Skip to content

Unit Tests (Windows) fail on main after #257: findGitRoot fixture lacks the drive letter #726

Closed

Description

@zeshi-du

Since #257 merged, Unit Tests (Windows) fails on main (run 41593052366):

FAIL src/lib/git-utils.test.ts > git-utils > findGitRoot > treats .git as a file (worktree or submodule) the same as a directory
AssertionError: expected null to be 'D:\wt'

The test's mock compares against join('/wt', '.git'). On Windows the walker resolves paths with a drive letter (D:\wt\.git), so the mock never matches. Test-only problem; the code path is fine.

Activity

  1. self-assigned this
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions