From b8c7eda89cc71a5987e1f3964faf1b987d9ce3e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 8 Oct 2026 09:40:11 +0200 Subject: [PATCH] test(insights): reset the HRV page mock without returning a teardown --- .../__tests__/healthkit-metric-page-hrv-measures.test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/insights/__tests__/healthkit-metric-page-hrv-measures.test.tsx b/src/components/insights/__tests__/healthkit-metric-page-hrv-measures.test.tsx index 2f4273ac4..3064ffb45 100644 --- a/src/components/insights/__tests__/healthkit-metric-page-hrv-measures.test.tsx +++ b/src/components/insights/__tests__/healthkit-metric-page-hrv-measures.test.tsx @@ -69,7 +69,9 @@ function charts(html: string): Array<{ types: string; title: string }> { ); } -beforeEach(() => analyticsMock.mockReset()); +beforeEach(() => { + analyticsMock.mockReset(); +}); describe("/insights/hrv — SDNN and RMSSD kept apart (#1110)", () => { it("charts each measure on its own when both have readings", () => {