From e6d6eaf972d10beff62fa4a8fba7ededa4bbd620 Mon Sep 17 00:00:00 2001 From: Rudy Fraser Date: Tue, 10 Nov 2026 17:00:19 -0500 Subject: [PATCH] test(merge): keep the response assertions the compiler needs --- oxlint-suppressions.json | 3 +++ src/analytics/index.test.tsx | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/oxlint-suppressions.json b/oxlint-suppressions.json index adac95b7d..71ce2952f 100644 --- a/oxlint-suppressions.json +++ b/oxlint-suppressions.json @@ -75,6 +75,9 @@ } }, "src/analytics/index.test.tsx": { + "typescript/no-unnecessary-type-assertion": { + "count": 2 + }, "typescript/no-unsafe-call": { "count": 3 }, diff --git a/src/analytics/index.test.tsx b/src/analytics/index.test.tsx index 25c308826..40620951e 100644 --- a/src/analytics/index.test.tsx +++ b/src/analytics/index.test.tsx @@ -350,7 +350,9 @@ it('flushes queued metrics with emission-time sessions and a stable device ID', jest .mocked(metrics.track) .mockImplementation((...args) => client.track(...args)) - const fetchMock = jest.spyOn(global, 'fetch').mockResolvedValue({ok: true}) + const fetchMock = jest + .spyOn(global, 'fetch') + .mockResolvedValue({ok: true} as Response) render() const metric = ax.metric metric('state:foreground', {}) @@ -381,7 +383,7 @@ it('keeps passive metrics, logs, evaluations, flushes and retries separate from const fetchMock = jest .spyOn(global, 'fetch') .mockRejectedValueOnce(new TypeError('Failed to fetch')) - .mockResolvedValue({ok: true}) + .mockResolvedValue({ok: true} as Response) render() const feature = installFeature() jest.setSystemTime(lastEventAt + 30 * 60_000) -- knotmirror 0.0.1