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.

Give each simulated settings read its own response body

pulse-triage[bot]14d12d96c03f
diff --git a/frontend-modern/src/components/Settings/__tests__/useTrueNASSettingsPanelState.transport.test.tsx b/frontend-modern/src/components/Settings/__tests__/useTrueNASSettingsPanelState.transport.test.tsx
index 36aadee724..9ba0c2b52c 100644
--- a/frontend-modern/src/components/Settings/__tests__/useTrueNASSettingsPanelState.transport.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/useTrueNASSettingsPanelState.transport.test.tsx
@@ -64,7 +64,7 @@ const ready = async (state: ReturnType<typeof useTrueNASSettingsPanelState>) =>
describe('TrueNAS settings through the real API transport', () => {
beforeEach(() => {
vi.clearAllMocks();
- fetchMock.mockReset().mockResolvedValue(json([connection('Replacement source')]));
+ fetchMock.mockReset().mockImplementation(async () => json([connection('Replacement source')]));
fetchMock.mockResolvedValueOnce(json([connection()]));
vi.stubGlobal('fetch', fetchMock);
sessionStorage.clear();