Skip to content

Commit 0d5cad3

Browse files
fix(backend): add isRepoEmpty mock to repoIndexManager tests
Co-authored-by: Brendan Kellam <brendan-kellam@users.noreply.github.com>
1 parent 63b077a commit 0d5cad3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/backend/src/repoIndexManager.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ vi.mock('./git.js', () => ({
4848
getCommitHashForRefName: vi.fn().mockResolvedValue('abc123'),
4949
getLatestCommitTimestamp: vi.fn().mockResolvedValue(new Date()),
5050
isPathAValidGitRepoRoot: vi.fn().mockResolvedValue(true),
51+
isRepoEmpty: vi.fn().mockResolvedValue(false),
5152
unsetGitConfig: vi.fn(),
5253
upsertGitConfig: vi.fn(),
5354
}));

0 commit comments

Comments
 (0)