File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ test.describe.only(() => {
111111  // disabled by default 
112112  // if (process.env.TEST_ISOLATED !== 'true') return 
113113
114-   // RUNNER_TEMP is for  Github Actions 
114+   // use  RUNNER_TEMP on  Github Actions 
115115  // https://github.com/actions/toolkit/issues/518 
116116  const  tmpRoot  =  path . join ( 
117117    process . env [ 'RUNNER_TEMP' ]  ||  os . tmpdir ( ) , 
Original file line number Diff line number Diff line change @@ -156,13 +156,11 @@ export async function setupIsolatedFixture(options: {
156156  console . error ( '[setupIsolatedFixture] rmSync' ,  options . dest ) 
157157  fs . rmSync ( options . dest ,  {  recursive : true ,  force : true  } ) 
158158  console . error ( '[setupIsolatedFixture] cpSync' ,  options . src ,  options . dest ) 
159-   fs . cpSync ( options . src ,  options . dest ,  {  recursive : true  } ) 
160-   console . error ( '[setupIsolatedFixture] cp done' ) 
161-   fs . rmSync ( path . join ( options . dest ,  'node_modules' ) ,  { 
159+   fs . cpSync ( options . src ,  options . dest ,  { 
162160    recursive : true , 
163-     force :  true , 
161+     filter :  ( src )   =>   ! src . includes ( 'node_modules' ) , 
164162  } ) 
165-   console . error ( '[setupIsolatedFixture] rm node_modules  done' ) 
163+   console . error ( '[setupIsolatedFixture] cp  done' ) 
166164
167165  // setup package.json overrides 
168166  const  packagesDir  =  path . join ( import . meta. dirname ,  '..' ,  '..' ) 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments