code: function allJasmineJsFiles(rootDir) {
    var files = [];
    fs.readdirSync(rootDir).filter(function(filename) {
  
      var fullPath = rootDir + "/" + filename;
      if (fs.statSync(fullPath).isDirectory() && !fullPath.match(/pages/)) {
        var subDirFiles = allJasmineJsFiles(fullPath);
        if (subDirFiles.length > 0) {
          files = files.concat();
          return true;
        }
      } else {
        if (fullPath.match(/\.js$/) && !isExcluded(fullPath)) {
          files.push(fullPath);
          return true;
        }
      }
      return false;
    });
  
    return files;
  }
docs: DWF TODO: This function could/should be re-written