Can't run unit tests after upgrading angular-mocks to 1.3.12 (or 1.3.13)

533 views
Skip to first unread message

Szymon Nowak

unread,
Feb 20, 2015, 6:55:59 AM2/20/15
to ang...@googlegroups.com
It looks like something has changed in angular-mocks in 1.3.12, because after updating from 1.3.11 to 1.3.12 or 1.3.13 all our unit tests stopped working and throw the same error:

Error: [$injector:modulerr] Failed to instantiate module ng due to:
Error: [$injector:modulerr] Failed to instantiate module ngLocale due to:
RangeError: Maximum call stack size exceeded
   at Function.t.injector.$$annotate

If I update angular and all related libraries to 1.3.13, but leave angular-mocks at 1.3.11 everything still works fine. Here's an example of a test that fails: https://gist.github.com/szimek/0eb0833f3447c2b843dd

Any ideas what can be wrong?

Cheers,
Szymon

Robbin Habermehl

unread,
Mar 4, 2015, 7:41:41 AM3/4/15
to ang...@googlegroups.com
I'm encountering this issue as well. Have you been able to resolve it in the meantime?


Op vrijdag 20 februari 2015 12:55:59 UTC+1 schreef Szymon Nowak:

Szymon Nowak

unread,
Mar 4, 2015, 8:02:34 AM3/4/15
to ang...@googlegroups.com
We keep using angular-mocks 1.3.11, but updated Angular to 1.3.13 :) I haven't tried 1.3.14 yet.

Bob

unread,
Mar 11, 2015, 6:46:28 PM3/11/15
to ang...@googlegroups.com
I have the same problem at the moment.
So far I am also keeping the angular-mocks at 1.3.11 because of that but I would really love to see a proper answer on this.

Bob

unread,
Mar 12, 2015, 5:27:08 PM3/12/15
to ang...@googlegroups.com
Hi,

If that helps it turns out I had the very same problem and in my case it was because I was loading the angular-mocks.js file.
I was importing it once with my vendor libs and again in the Karma files.

Cheers.


On Saturday, February 21, 2015 at 12:55:59 AM UTC+13, Szymon Nowak wrote:

Caitlin Potter

unread,
Mar 12, 2015, 5:29:41 PM3/12/15
to ang...@googlegroups.com
Hey, that sounds interesting, and kind of bug-like! Could you please file an issue (with a reproduction of some kind) on https://github.com/angular/angular.js ? Thanks!

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages