File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed 
packages/toolkit/src/tests Expand file tree Collapse file tree 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'
22import  type  {  StoreEnhancer  }  from  '@reduxjs/toolkit' 
33import  {  Tuple  }  from  '@reduxjs/toolkit' 
44import  type  *  as  Redux  from  'redux' 
5- import  type  {  MockInstance  }  from  'vitest' 
65import  {  vi  }  from  'vitest' 
76
87vi . 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- 
2818describe ( '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' ) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments