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\n\nThe heartbeat-related imports and mocked module were removed from both AIPanel test files because the tests no longer reference any heartbeat functionality, making these mocks dead code that could cause confusion during maintenance.\n\nAuto-committed-on: dragonfly\n

Steven Enamakel99b92ebb3c7a
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() },
}));