Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Keep configuration reload timer assertions typed

pulse-triage[bot]4d704391b02c
diff --git a/frontend-modern/src/components/Settings/__tests__/useBackupTransferFlow.test.ts b/frontend-modern/src/components/Settings/__tests__/useBackupTransferFlow.test.ts
index 86faacf422..1ffa4607af 100644
--- a/frontend-modern/src/components/Settings/__tests__/useBackupTransferFlow.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/useBackupTransferFlow.test.ts
@@ -1,5 +1,5 @@
import { createRoot } from 'solid-js';
-import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+import { afterEach, beforeEach, describe, expect, it, vi, type MockInstance } from 'vitest';
import { apiClient, clearApiToken, getApiToken, getOrgID, setOrgID } from '@/utils/apiClient';
import { notificationStore } from '@/stores/notifications';
import type { SecurityStatus } from '@/types/config';
@@ -12,7 +12,7 @@ vi.mock('@/stores/notifications', () => ({
const fetchMock = vi.fn();
const disposers: (() => void)[] = [];
const passphrase = 'synthetic-passphrase';
-let timeoutSpy: ReturnType<typeof vi.spyOn>;
+let timeoutSpy: MockInstance<typeof globalThis.setTimeout>;
const reloadTimers = () =>
timeoutSpy.mock.calls.flatMap((args, index) =>
args[1] === 2000 ? [timeoutSpy.mock.results[index].value] : [],