File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -60,23 +60,22 @@ describe('webpack loaders', () => {
6060  } ) ; 
6161
6262  describe ( 'client loaders' ,  ( )  =>  { 
63-     it ( "doesn't add  `RewriteFrames` loader to client config" ,  async  ( )  =>  { 
63+     it ( 'adds  `RewriteFrames` loader to client config' ,  async  ( )  =>  { 
6464      const  finalWebpackConfig  =  await  materializeFinalWebpackConfig ( { 
6565        exportedNextConfig, 
6666        incomingWebpackConfig : clientWebpackConfig , 
6767        incomingWebpackBuildContext : clientBuildContext , 
6868      } ) ; 
6969
70-       expect ( finalWebpackConfig . module . rules ) . not . toContainEqual ( 
71-         expect . objectContaining ( { 
72-           use : [ 
73-             { 
74-               loader : expect . stringEndingWith ( 'prefixLoader.js' ) , 
75-               options : expect . objectContaining ( {  templatePrefix : expect . stringContaining ( 'RewriteFrames' )  } ) , 
76-             } , 
77-           ] , 
78-         } ) , 
79-       ) ; 
70+       expect ( finalWebpackConfig . module . rules ) . toContainEqual ( { 
71+         test : / s e n t r y \. c l i e n t \. c o n f i g \. ( j s x ? | t s x ? ) / , 
72+         use : [ 
73+           { 
74+             loader : expect . stringEndingWith ( 'prefixLoader.js' ) , 
75+             options : expect . objectContaining ( {  templatePrefix : 'clientRewriteFrames'  } ) , 
76+           } , 
77+         ] , 
78+       } ) ; 
8079    } ) ; 
8180  } ) ; 
8281} ) ; 
Original file line number Diff line number Diff line change @@ -63,7 +63,11 @@ describe('Client init()', () => {
6363          } , 
6464        } , 
6565        environment : 'test' , 
66-         integrations : [ ] , 
66+         integrations : expect . arrayContaining ( [ 
67+           expect . objectContaining ( { 
68+             name : 'RewriteFrames' , 
69+           } ) , 
70+         ] ) , 
6771      } ) , 
6872    ) ; 
6973  } ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments