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)