diff --git a/packages/toolkit/src/tests/configureStore.test.ts b/packages/toolkit/src/tests/configureStore.test.ts index d2ee9bf86e..19ad7ee371 100644 --- a/packages/toolkit/src/tests/configureStore.test.ts +++ b/packages/toolkit/src/tests/configureStore.test.ts @@ -2,7 +2,6 @@ import * as DevTools from '@internal/devtoolsExtension' import type { StoreEnhancer } from '@reduxjs/toolkit' import { Tuple } from '@reduxjs/toolkit' import type * as Redux from 'redux' -import type { MockInstance } from 'vitest' import { vi } from 'vitest' vi.doMock('redux', async (importOriginal) => { @@ -16,20 +15,9 @@ vi.doMock('redux', async (importOriginal) => { return redux }) -declare global { - interface Window { - __REDUX_DEVTOOLS_EXTENSION_COMPOSE__: MockInstance< - Parameters, - ReturnType - > - } -} - describe('configureStore', async () => { const composeWithDevToolsSpy = vi.spyOn(DevTools, 'composeWithDevTools') - window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ = composeWithDevToolsSpy - const redux = await import('redux') const { configureStore } = await import('@reduxjs/toolkit')