Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module Renaming Not Picked Up by Karma #1139

Closed
decorum-blb opened this issue Jul 21, 2014 · 2 comments
Closed

Module Renaming Not Picked Up by Karma #1139

decorum-blb opened this issue Jul 21, 2014 · 2 comments

Comments

@decorum-blb
Copy link

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?

@pkozlowski-opensource
Copy link
Member

@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.

@pkozlowski-opensource
Copy link
Member

@adamedwardsdbz I haven't heard from you so going to close this issue for now. Would be happen to re-open if you've got more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants