You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am experiencing a weird, and temperamental, issue when running Karma.
I am testing AngularJS code, and I had a module called angular.module("MainModule", []); that I then renamed to angular.module("ApplicationModule", []);.
I updated my unit test to say beforeEach(module("ApplicationModule"));, but I get an injection error saying that module "MainModule" cannot be found.
Even though I updated the module name both at the declaration and in the unit test, I am getting this issue.
However, when I open this same project on my co-worker's computer, it runs fine.
Any clue why it is working in one place, and not another?
The text was updated successfully, but these errors were encountered:
@adamedwardsdbz it is very hard to diagnose / say something about this situation. I would tend to assume that you are not editing a file you think you are editing :-/ But of course this is pure speculation and it will remain speculation unless you can put together a reproduce scenario in a minimal GitHub repo.
Hello, I am experiencing a weird, and temperamental, issue when running Karma.
I am testing AngularJS code, and I had a module called
angular.module("MainModule", []);
that I then renamed toangular.module("ApplicationModule", []);
.I updated my unit test to say
beforeEach(module("ApplicationModule"));
, but I get an injection error saying thatmodule "MainModule" cannot be found
.Even though I updated the module name both at the declaration and in the unit test, I am getting this issue.
However, when I open this same project on my co-worker's computer, it runs fine.
Any clue why it is working in one place, and not another?
The text was updated successfully, but these errors were encountered: