File tree Expand file tree Collapse file tree 5 files changed +18
-3
lines changed 
infra/mobx/store/src/stores 
presentation/components/interface-form Expand file tree Collapse file tree 5 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,10 @@ export const createTestStore = () => {
9999
100100  const  domainStore  =  createDomainStore ( userDto ,  preferenceDto ) 
101101
102-   const  applicationStore  =  createApplicationStore ( { 
103-     pathParams : { } , 
104-   } ) 
102+   const  applicationStore  =  createApplicationStore ( 
103+     {  pathParams : { }  } , 
104+     domainStore , 
105+   ) 
105106
106107  @model ( '@codelab/TestRootStore' ) 
107108  class  TestRootStore 
Original file line number Diff line number Diff line change @@ -32,4 +32,5 @@ export default {
3232      } , 
3333    ] , 
3434  ] , 
35+   setupFilesAfterEnv : [ './jest.mocks.ts' ] , 
3536} 
Original file line number Diff line number Diff line change 1+ // mock server modules that are not supposed to be used in client env 
2+ jest . mock ( '@codelab/shared/infra/fetch' ,  ( )  =>  ( { 
3+   fetchWithAuth : ( )  =>  null , 
4+ } ) ) 
Original file line number Diff line number Diff line change @@ -31,4 +31,5 @@ export default {
3131      } , 
3232    ] , 
3333  ] , 
34+   setupFilesAfterEnv : [ './jest.mocks.ts' ] , 
3435} 
Original file line number Diff line number Diff line change 1+ // mock server modules that are not supposed to be used in client env 
2+ jest . mock ( '@codelab/shared/infra/fetch' ,  ( )  =>  ( { 
3+   fetchWithAuth : ( )  =>  null , 
4+ } ) ) 
5+ // mock hooks that are not supported in jsdom env 
6+ jest . mock ( 'next/navigation' ,  ( )  =>  ( { 
7+   useParams : jest . fn ( ) . mockReturnValue ( { } ) , 
8+ } ) ) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments