From 238c9762ba2d7c7986bef214c701b936a403d124 Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 19:58:26 +0100 Subject: [PATCH] style(web): format hybrid memory regression fixture Apply the repository Prettier policy to the newly integrated issue #1962 reactive-boundary fixture. The exact reviewed candidate remains preserved as a merge parent, and the focused test behavior is unchanged. Change-source: pulse-maintainer --- .../src/hooks/__tests__/useWorkloads.test.ts | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/frontend-modern/src/hooks/__tests__/useWorkloads.test.ts b/frontend-modern/src/hooks/__tests__/useWorkloads.test.ts index 11a2af621..fbd7a71d0 100644 --- a/frontend-modern/src/hooks/__tests__/useWorkloads.test.ts +++ b/frontend-modern/src/hooks/__tests__/useWorkloads.test.ts @@ -298,16 +298,26 @@ describe('useWorkloads', () => { it('tracks canonical hybrid VM memory without substituting nested agent readings', async () => { // #1962: synthetic snapshots exercise Web reactivity, not poller recovery. - const buildVM = (instance: string, percent?: number) => ({ - id: `${instance}-pve1-101`, type: 'vm', name: `${instance}-vm`, - status: 'running', platformType: 'proxmox-pve', sourceType: 'hybrid', - sources: ['proxmox', 'agent'], - proxmox: { vmid: 101, nodeName: 'pve1', instance }, - memory: percent === undefined ? undefined : { - current: percent, used: percent * 1024, total: 100 * 1024, - }, - agent: { memory: { used: 35 * 1024, total: 100 * 1024, usage: 35 } }, - }) as any; + const buildVM = (instance: string, percent?: number) => + ({ + id: `${instance}-pve1-101`, + type: 'vm', + name: `${instance}-vm`, + status: 'running', + platformType: 'proxmox-pve', + sourceType: 'hybrid', + sources: ['proxmox', 'agent'], + proxmox: { vmid: 101, nodeName: 'pve1', instance }, + memory: + percent === undefined + ? undefined + : { + current: percent, + used: percent * 1024, + total: 100 * 1024, + }, + agent: { memory: { used: 35 * 1024, total: 100 * 1024, usage: 35 } }, + }) as any; const otherVM = buildVM('cluster-b', 80); const [snapshot, setSnapshot] = createSignal([buildVM('cluster-a', 100), otherVM]); let dispose = () => {};