Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(tests): remove unused heartbeat mocks from AIPanel tests

Steven Enamakel7ed2ee7b79b7
diff --git a/app/src/components/settings/panels/__tests__/AIPanel.omlx.test.tsx b/app/src/components/settings/panels/__tests__/AIPanel.omlx.test.tsx
index 64f4c810f3..27a91c50bf 100644
--- a/app/src/components/settings/panels/__tests__/AIPanel.omlx.test.tsx
+++ b/app/src/components/settings/panels/__tests__/AIPanel.omlx.test.tsx
@@ -19,11 +19,6 @@ import { connectOpenRouterViaOAuth } from '../../../../utils/openrouterOAuth';
import { openUrl } from '../../../../utils/openUrl';
// Lazy import so the typed mock is available to individual tests.
import { openhumanUpdateLocalAiSettings as openhumanUpdateLocalAiSettingsMock } from '../../../../utils/tauriCommands/config';
-import {
- openhumanHeartbeatSettingsGet,
- openhumanHeartbeatSettingsSet,
- openhumanHeartbeatTickNow,
-} from '../../../../utils/tauriCommands/heartbeat';
import AIPanel from '../AIPanel';
vi.mock('../../../../services/api/aiSettingsApi', () => ({
@@ -72,12 +67,6 @@ vi.mock('../../hooks/useSettingsNavigation', () => ({
}),
}));
-vi.mock('../../../../utils/tauriCommands/heartbeat', () => ({
- openhumanHeartbeatSettingsGet: vi.fn(),
- openhumanHeartbeatSettingsSet: vi.fn(),
- openhumanHeartbeatTickNow: vi.fn(),
-}));
-
vi.mock('../../../../services/api/creditsApi', () => ({
creditsApi: { getTeamUsage: vi.fn(), getTransactions: vi.fn() },
}));
diff --git a/app/src/components/settings/panels/__tests__/AIPanel.test.tsx b/app/src/components/settings/panels/__tests__/AIPanel.test.tsx
index b55033cbdb..0d591c2817 100644
--- a/app/src/components/settings/panels/__tests__/AIPanel.test.tsx
+++ b/app/src/components/settings/panels/__tests__/AIPanel.test.tsx
@@ -26,11 +26,6 @@ import { connectOpenRouterViaOAuth } from '../../../../utils/openrouterOAuth';
import { openUrl } from '../../../../utils/openUrl';
// Lazy import so the typed mock is available to individual tests.
import { openhumanUpdateLocalAiSettings as openhumanUpdateLocalAiSettingsMock } from '../../../../utils/tauriCommands/config';
-import {
- openhumanHeartbeatSettingsGet,
- openhumanHeartbeatSettingsSet,
- openhumanHeartbeatTickNow,
-} from '../../../../utils/tauriCommands/heartbeat';
import AIPanel, {
BackgroundLoopControls,
buildRoutingDiffSummary,
@@ -92,12 +87,6 @@ vi.mock('../../hooks/useSettingsNavigation', () => ({
}),
}));
-vi.mock('../../../../utils/tauriCommands/heartbeat', () => ({
- openhumanHeartbeatSettingsGet: vi.fn(),
- openhumanHeartbeatSettingsSet: vi.fn(),
- openhumanHeartbeatTickNow: vi.fn(),
-}));
-
vi.mock('../../../../services/api/creditsApi', () => ({
creditsApi: { getTeamUsage: vi.fn(), getTransactions: vi.fn() },
}));