test: fix TelemetryService mock in Nebius embedder tests

This commit is contained in:
Roo Code 2025-10-10 02:26:52 +00:00
parent b574f5e7b5
commit f9b208b194

View file

@ -14,6 +14,15 @@ vi.mock("../../../../i18n", () => ({
}),
}))
// Mock TelemetryService
vi.mock("@roo-code/telemetry", () => ({
TelemetryService: {
instance: {
captureEvent: vi.fn(),
},
},
}))
// Mock the validation helpers
vi.mock("../../shared/validation-helpers", () => ({
withValidationErrorHandling: vi.fn(async (fn, provider) => {