Skip to content
Source
Sign inSign up
TanStack/query

test(query-core): remove empty timeout manager suite on v6 #12721

Mergedmanudeli(GitHub profile, opens in a new tab)merged 1 commit intoquery-v6 fromrefs/pull/12721/headmerged by manudeli(GitHub profile, opens in a new tab) View on GitHub

Showing 1 changed file with 1 addition and 18 deletions.

x
0 of 1 viewed, 1 left
1 addition and 18 deletionspackages/query-core/src/__tests__/timeoutManager.test.tsxModified
View file
@@ -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 @@
expect(timeoutManager).toBeInstanceOf(TimeoutManager)
-​
- describe('exported functions', () => {
- let provider: ReturnType<typeof createMockProvider>
-​
- beforeEach(() => {
- provider = createMockProvider()
- timeoutManager.setTimeoutProvider(provider)
- })
-​
- afterEach(() => {
- timeoutManager.setTimeoutProvider(defaultTimeoutProvider)
- })
- })