File tree Expand file tree Collapse file tree 6 files changed +22
-20
lines changed Expand file tree Collapse file tree 6 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -913,20 +913,6 @@ function expectRequiredTLAError(err) {
913913  } 
914914} 
915915
916- function  skipIfNoWatchModeSignals ( )  { 
917-   if  ( exports . isWindows )  { 
918-     skip ( 'no signals on Windows' ) ; 
919-   } 
920- 
921-   if  ( exports . isIBMi )  { 
922-     skip ( 'IBMi does not support `fs.watch()`' ) ; 
923-   } 
924- 
925-   if  ( exports . isAIX )  { 
926-     skip ( 'folder watch capability is limited in AIX.' ) ; 
927-   } 
928- } 
929- 
930916const  common  =  { 
931917  allowGlobals, 
932918  buildType, 
@@ -974,7 +960,6 @@ const common = {
974960  skipIf32Bits, 
975961  skipIfEslintMissing, 
976962  skipIfInspectorDisabled, 
977-   skipIfNoWatchModeSignals, 
978963  skipIfSQLiteMissing, 
979964  spawnPromisified, 
980965
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ const {
4646  skipIf32Bits, 
4747  skipIfEslintMissing, 
4848  skipIfInspectorDisabled, 
49-   skipIfNoWatchModeSignals, 
5049  skipIfSQLiteMissing, 
5150  spawnPromisified, 
5251}  =  common ; 
@@ -98,7 +97,6 @@ export {
9897  skipIf32Bits , 
9998  skipIfEslintMissing , 
10099  skipIfInspectorDisabled , 
101-   skipIfNoWatchModeSignals , 
102100  skipIfSQLiteMissing , 
103101  spawnPromisified , 
104102} ; 
Original file line number Diff line number Diff line change 1+ 'use strict' ; 
2+ const  common  =  require ( './index.js' ) ; 
3+ 
4+ exports . skipIfNoWatchModeSignals  =  function ( )  { 
5+   if  ( common . isWindows )  { 
6+     common . skip ( 'no signals on Windows' ) ; 
7+   } 
8+ 
9+   if  ( common . isIBMi )  { 
10+     common . skip ( 'IBMi does not support `fs.watch()`' ) ; 
11+   } 
12+ 
13+   if  ( common . isAIX )  { 
14+     common . skip ( 'folder watch capability is limited in AIX.' ) ; 
15+   } 
16+ } ; 
Original file line number Diff line number Diff line change 11// Test that the kill signal sent by --watch defaults to SIGTERM. 
22
3- import  {   skipIfNoWatchModeSignals   }   from   '../common/index.mjs' ; 
3+ import  '../common/index.mjs' ; 
44import  assert  from  'node:assert' ; 
55import  {  writeFileSync  }  from  'node:fs' ; 
66import  {  spawn  }  from  'node:child_process' ; 
77import  {  once  }  from  'node:events' ; 
88import  tmpdir  from  '../common/tmpdir.js' ; 
99import  fixtures  from  '../common/fixtures.js' ; 
10+ import  {  skipIfNoWatchModeSignals  }  from  '../common/watch.js' ; 
1011
1112skipIfNoWatchModeSignals ( ) ; 
1213
Original file line number Diff line number Diff line change 11// Test that --watch-kill-signal errors when an invalid kill signal is provided. 
22
3- import  {   skipIfNoWatchModeSignals   }   from   '../common/index.mjs' ; 
3+ import  '../common/index.mjs' ; 
44import  assert  from  'node:assert' ; 
55import  {  writeFileSync  }  from  'node:fs' ; 
66import  {  spawn  }  from  'node:child_process' ; 
77import  tmpdir  from  '../common/tmpdir.js' ; 
88import  fixtures  from  '../common/fixtures.js' ; 
9+ import  {  skipIfNoWatchModeSignals  }  from  '../common/watch.js' ; 
910
1011skipIfNoWatchModeSignals ( ) ; 
1112
Original file line number Diff line number Diff line change 11// Test that the kill signal sent by --watch can be overridden to SIGINT 
22// by using --watch-kill-signal. 
33
4- import  {   skipIfNoWatchModeSignals   }   from   '../common/index.mjs' ; 
4+ import  '../common/index.mjs' ; 
55import  assert  from  'node:assert' ; 
66import  {  writeFileSync  }  from  'node:fs' ; 
77import  {  spawn  }  from  'node:child_process' ; 
88import  {  once  }  from  'node:events' ; 
99import  tmpdir  from  '../common/tmpdir.js' ; 
1010import  fixtures  from  '../common/fixtures.js' ; 
11+ import  {  skipIfNoWatchModeSignals  }  from  '../common/watch.js' ; 
1112
1213skipIfNoWatchModeSignals ( ) ; 
1314
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments