88
99const clearModule = require ( 'clear-module' ) ;
1010const execa = require ( 'execa' ) ;
11- const glob = require ( 'glob' ) ;
11+ const { globSync } = require ( 'glob' ) ;
1212const ol = require ( 'common-tags' ) . oneLine ;
1313const upath = require ( 'upath' ) ;
1414const seleniumAssistant = require ( 'selenium-assistant' ) ;
@@ -63,7 +63,7 @@ async function runTestSuite(testPath, nodeEnv, seleniumBrowser, webdriver) {
6363 webdriver,
6464 } ;
6565
66- const testFiles = glob . sync (
66+ const testFiles = globSync (
6767 upath . join ( __dirname , '..' , testPath , 'test-*.js' ) ,
6868 ) ;
6969
@@ -74,7 +74,7 @@ async function runTestSuite(testPath, nodeEnv, seleniumBrowser, webdriver) {
7474}
7575
7676async function runIntegrationForBrowser ( browser ) {
77- const packagesToTest = glob . sync ( `test/${ global . packageOrStar } /integration` ) ;
77+ const packagesToTest = globSync ( `test/${ global . packageOrStar } /integration` ) ;
7878
7979 for ( const buildKey of Object . keys ( constants . BUILD_TYPES ) ) {
8080 const webdriver = await browser . getSeleniumDriver ( ) ;
@@ -121,7 +121,7 @@ async function test_integration() {
121121 await seleniumAssistant . downloadLocalBrowser ( 'chrome' , 'stable' , expiration ) ;
122122 await seleniumAssistant . downloadLocalBrowser ( 'firefox' , 'stable' , expiration ) ;
123123
124- const packagesToTest = glob . sync ( `test/${ global . packageOrStar } /integration` ) ;
124+ const packagesToTest = globSync ( `test/${ global . packageOrStar } /integration` ) ;
125125 if ( packagesToTest . length === 0 ) {
126126 return ;
127127 }
0 commit comments