There have been a few questions asked about how to address the error message:
10 $digest() iterations reached. Aborting,
for example this one. I get how to fix that - you change your code so it doesn't change the $scope
during a digest
.
What I'd like to do, and don't understand how to do, is reproduce this error as part of a Karma/Jasmine test. From what I've gathered, you need to manually force a digest to generally get digest updates, and that works for me in terms of forcing the initial digest (to resolve promises), but I don't see it force the $digest
loop that eventually errors out.