RajSharma RajSharma - 1 month ago 10
AngularJS Question

Karma; What is the difference between * and ** in karma.config.js?

Sorry I am new to Karma and angular.

I am working on a angular js project.

In my karma file I * and ** in files.

'app/assets/javascripts/ibiza/*/*.js',
'app/assets/javascripts/ibiza/*/**/*.js',
'app/assets/javascripts/ibiza/*/**/*.es6',
'app/assets/javascripts/mckinley/*/*.es6',
'app/assets/javascripts/mckinley/*/**/*.es6',
'app/assets/javascripts/twitter/*/*.es6',
'app/assets/javascripts/twitter/*/**/*.es6',
'app/assets/javascripts/facebook/*/*.js',
'app/assets/javascripts/facebook/*/**/*.js',


My question mhy ** are used here and what are it's purpose? I know it is a simple question but I don't know I couldn't figure out.

Answer

Please have a look at node-glob.

There the following description can be found:

* Matches 0 or more characters in a single path portion

** If a "globstar" is alone in a path portion, then it matches zero or more directories and subdirectories searching for matches. It does not crawl symlinked directories.