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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Stub the history chart in the guest physical disk test
rcourtmancca21dcc2cf6
diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestPhysicalDisks.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestPhysicalDisks.test.tsxindex b29495882f..961f6e2b4b 100644--- a/frontend-modern/src/components/Workloads/__tests__/GuestPhysicalDisks.test.tsx+++ b/frontend-modern/src/components/Workloads/__tests__/GuestPhysicalDisks.test.tsx@@ -1,5 +1,5 @@import { cleanup, fireEvent, render, screen, waitFor, within } from '@solidjs/testing-library';-import { createSignal } from 'solid-js';+import { createSignal, type JSX } from 'solid-js';import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';import { AlertsAPI } from '@/api/alerts';import { useAlertsActivation } from '@/stores/alertsActivation';@@ -17,6 +17,14 @@ const queryState = vi.hoisted(() => ({enabled: false,}));+// The expanded disk detail now shows its history charts in view; the chart+// measures itself with ResizeObserver, which jsdom lacks. Its rendering is+// covered by the HistoryChart and DiskDetail suites.+vi.mock('@/components/shared/HistoryChart', () => ({+ HistoryChartHoverGroup: (props: { children: JSX.Element }) => <div>{props.children}</div>,+ HistoryChart: (props: { label: string }) => <div data-testid="history-chart">{props.label}</div>,+}));+vi.mock('@/hooks/useUnifiedResources', () => ({useUnifiedResources: (options: { query: string; enabled: () => boolean }) => {queryState.query = options.query;