diff --git a/bin/utils.js b/bin/utils.js index 1664397bc..16d56da9a 100644 --- a/bin/utils.js +++ b/bin/utils.js @@ -8,7 +8,7 @@ function getFilesFromArgs( args ) { // Default to files in the test directory if ( !globs.length ) { - globs.push( "test/*.js" ); + globs.push( "test/**/*.js" ); } // For each of the potential globs, we check if it is a directory path and @@ -17,7 +17,7 @@ function getFilesFromArgs( args ) { let stat = existsStat( glob ); if ( stat && stat.isDirectory() ) { - return `${glob}/*.js`; + return `${glob}/**/*.js`; } else { return glob; }