Skip to content

Commit 29d91c1

Browse files
committed
Remove unnecessary window mock
1 parent ed1d21e commit 29d91c1

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/toolkit/src/tests/configureStore.test.ts

-12
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as DevTools from '@internal/devtoolsExtension'
22
import type { StoreEnhancer } from '@reduxjs/toolkit'
33
import { Tuple } from '@reduxjs/toolkit'
44
import type * as Redux from 'redux'
5-
import type { MockInstance } from 'vitest'
65
import { vi } from 'vitest'
76

87
vi.doMock('redux', async (importOriginal) => {
@@ -16,20 +15,9 @@ vi.doMock('redux', async (importOriginal) => {
1615
return redux
1716
})
1817

19-
declare global {
20-
interface Window {
21-
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__: MockInstance<
22-
Parameters<typeof DevTools.composeWithDevTools>,
23-
ReturnType<typeof DevTools.composeWithDevTools>
24-
>
25-
}
26-
}
27-
2818
describe('configureStore', async () => {
2919
const composeWithDevToolsSpy = vi.spyOn(DevTools, 'composeWithDevTools')
3020

31-
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ = composeWithDevToolsSpy
32-
3321
const redux = await import('redux')
3422

3523
const { configureStore } = await import('@reduxjs/toolkit')

0 commit comments

Comments
 (0)