test(telemetry): improve mock isolation for runner and index tests

This commit is contained in:
YeonGyu-Kim
2026-04-11 22:14:44 +09:00
parent 0c93ce66e5
commit db5beef015
2 changed files with 11 additions and 11 deletions
+8 -1
View File
@@ -95,7 +95,14 @@ function installModuleMocks(): void {
startBackgroundCheck: mock(() => {}),
}))
mock.module("./tools/lsp/client", () => ({
lspManager: {},
lspManager: {
getClient: mock(async () => ({
diagnostics: mock(async () => ({ items: [] })),
})),
stopAll: mock(async () => {}),
releaseClient: mock(() => {}),
cleanupTempDirectoryClients: mock(async () => {}),
},
}))
mock.module("./shared/posthog", () => ({
createPluginPostHog: mockCreatePluginPostHog,