Skip to content

Commit aff718e

Browse files
committed
refactor: Update the CodeIndexmanager test
1 parent e419cb0 commit aff718e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/code-index/__tests__/manager.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ describe("CodeIndexManager - handleExternalSettingsChange regression", () => {
8989
expect(manager.isInitialized).toBe(true)
9090

9191
// Mock the methods that would be called during restart
92-
const stopWatcherSpy = vitest.spyOn(manager, "stopWatcher").mockImplementation(() => {})
92+
const recreateServicesSpy = vitest.spyOn(manager as any, "_recreateServices").mockImplementation(() => {}) // kilocode_change
9393
const startIndexingSpy = vitest.spyOn(manager, "startIndexing").mockResolvedValue()
9494

9595
// Mock the feature state
@@ -100,7 +100,7 @@ describe("CodeIndexManager - handleExternalSettingsChange regression", () => {
100100

101101
// Verify that the restart sequence was called
102102
expect(mockConfigManager.loadConfiguration).toHaveBeenCalled()
103-
expect(stopWatcherSpy).toHaveBeenCalled()
103+
expect(recreateServicesSpy).toHaveBeenCalled() // kilocode_change
104104
expect(startIndexingSpy).toHaveBeenCalled()
105105
})
106106

0 commit comments

Comments
 (0)