From 29d91c1fe04c2a050836e9fde83a32d161b5d564 Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Fri, 19 Jan 2024 23:30:46 -0600 Subject: [PATCH] Remove unnecessary `window` mock --- packages/toolkit/src/tests/configureStore.test.ts | 12 ------------ 1 file changed, 12 deletions(-) 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')