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 the cleanup-failure fetch fixture asynchronous

pulse-triage[bot]03aac234347a
diff --git a/frontend-modern/src/__tests__/useAppRuntimeState.test.ts b/frontend-modern/src/__tests__/useAppRuntimeState.test.ts
index 6f1b76cf11..f36b59cf0e 100644
--- a/frontend-modern/src/__tests__/useAppRuntimeState.test.ts
+++ b/frontend-modern/src/__tests__/useAppRuntimeState.test.ts
@@ -978,7 +978,7 @@ describe('useAppRuntimeState', () => {
throw new Error('Synthetic blocked enumeration');
});
const fallback = apiFetchMock.getMockImplementation()!;
- apiFetchMock.mockImplementation((url: string) =>
+ apiFetchMock.mockImplementation(async (url: string) =>
url === '/api/logout' ? new Response('{"success":true}') : fallback(url),
);
await hookState.handleLogout();