fix(cli): Fix type errors in UI hooks tests (#11483)

This commit is contained in:
Sandy Tao
2025-10-19 17:16:16 -07:00
committed by GitHub
parent 23e52f0ff3
commit 0fd9ff0f53
11 changed files with 356 additions and 277 deletions
@@ -148,6 +148,7 @@ describe('useAtCompletion', () => {
useGitignore: false,
useGeminiignore: false,
cache: false,
cacheTtl: 0,
enableRecursiveFileSearch: true,
disableFuzzySearch: false,
});
@@ -239,8 +240,8 @@ describe('useAtCompletion', () => {
initialize: vi.fn().mockResolvedValue(undefined),
search: vi
.fn()
.mockImplementation(async (...args) =>
realFileSearch.search(...args),
.mockImplementation(async (pattern, options) =>
realFileSearch.search(pattern, options),
),
};
vi.spyOn(FileSearchFactory, 'create').mockReturnValue(mockFileSearch);