I ran into a bower issue while running grunt test on a new yeoman/angular project.

The error read:

"app/bower_components/angular/angular.js" does not match any file."

I noticed that I didn’t have a bower_components directory but I did have a components directory.

I changed my karma.conf.js file to watch components and waited for something to blow up.

I was able to run grunt test without any issues. This has been working for a couple of days without any side effects.

$ git diff

diff --git a/karma.conf.js b/karma.conf.js
index ffd77ce..f4ca129 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -7,8 +7,8 @@ basePath = '';
 files = [
-  'app/bower_components/angular/angular.js',
-  'app/bower_components/angular-mocks/angular-mocks.js',
+  'app/components/angular/angular.js',
+  'app/components/angular-mocks/angular-mocks.js',