From 49e98c3fcb8906ba4775610bffef97a7f480b3e9 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Sat, 28 Nov 2026 22:05:12 +0900 Subject: [PATCH] test(query-core): remove empty timeout manager suite The query-v6 cleanup of systemSetTimeoutZero removed the last test from the exported functions suite. Remove its unused setup so Vitest can finish after running the remaining timeout manager tests. --- .../src/__tests__/timeoutManager.test.tsx | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/packages/query-core/src/__tests__/timeoutManager.test.tsx b/packages/query-core/src/__tests__/timeoutManager.test.tsx index 288e67cd9e9..2765f4815e5 100644 --- a/packages/query-core/src/__tests__/timeoutManager.test.tsx +++ b/packages/query-core/src/__tests__/timeoutManager.test.tsx @@ -1,9 +1,5 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' -import { - TimeoutManager, - defaultTimeoutProvider, - timeoutManager, -} from '../timeoutManager' +import { TimeoutManager, timeoutManager } from '../timeoutManager' import type { MockInstance } from 'vitest' import type { TimeoutCallback, TimeoutProvider } from '../timeoutManager' @@ -110,17 +106,4 @@ describe('timeoutManager', () => { expect(timeoutManager).toBeInstanceOf(TimeoutManager) }) }) - - describe('exported functions', () => { - let provider: ReturnType - - beforeEach(() => { - provider = createMockProvider() - timeoutManager.setTimeoutProvider(provider) - }) - - afterEach(() => { - timeoutManager.setTimeoutProvider(defaultTimeoutProvider) - }) - }) })