File tree 1 file changed +0
-12
lines changed
packages/toolkit/src/tests
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import * as DevTools from '@internal/devtoolsExtension'
2
2
import type { StoreEnhancer } from '@reduxjs/toolkit'
3
3
import { Tuple } from '@reduxjs/toolkit'
4
4
import type * as Redux from 'redux'
5
- import type { MockInstance } from 'vitest'
6
5
import { vi } from 'vitest'
7
6
8
7
vi . doMock ( 'redux' , async ( importOriginal ) => {
@@ -16,20 +15,9 @@ vi.doMock('redux', async (importOriginal) => {
16
15
return redux
17
16
} )
18
17
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
-
28
18
describe ( 'configureStore' , async ( ) => {
29
19
const composeWithDevToolsSpy = vi . spyOn ( DevTools , 'composeWithDevTools' )
30
20
31
- window . __REDUX_DEVTOOLS_EXTENSION_COMPOSE__ = composeWithDevToolsSpy
32
-
33
21
const redux = await import ( 'redux' )
34
22
35
23
const { configureStore } = await import ( '@reduxjs/toolkit' )
You can’t perform that action at this time.
0 commit comments