Certain globs cause a TypeError
It seems that using a globbing pattern such as **/**/*.js will cause the following error when running karma-coverage:
PhantomJS 1.9.8 (Mac OS X 0.0.0) ERROR TypeError: 'undefined' is not an object (evaluating '__cov_hmKLkt0YIrHx8V6$TQ0_kg.s['2']')
In the karma.conf preprocessor object, the glob that caused this error was set up like:
'app/!(vendor)**/**/!(*.spec).js': ['coverage']
Changing the second ** to a specific directory "fixed" the error:
'app/!(vendor)**/specific-dirname/!(*.spec).js': ['coverage']
Yeah, I came across this too. Same exact error for the same exact reason.
Also having this issue with a slightly more specific path (**/src/app/**/*.js)
I'm experiencing the same issue. Anyone knows of a workaround?
It's quite interesting that I experience this only on my local Mac machine, but not on my CI server (Linux).