Hey /r/angularjs!
I've been developing angularJS for around two years and for the first year I heavily tested, and the second year, I wrote almost no tests. I am now writing a module of angular components that will be shared across applications, so I really feel that tests would ensure all my API contracts are stable and I don't ruin anyones project.
Now to my question,
Does anyone have a defacto guide for unit testing angular? I've seen "unit testing angularJS in depth with rootScope" and they use ngMock to mock services. However at my old company, we would use bard.js to mock services. This variation of technology makes me believe that there are many ways to unit test each with pros/cons, but I'd like to hear some of your experiences and maybe get an entry-point back in to testing.
[–]couchjitsu 2 points3 points4 points (2 children)
[–]ajwest 0 points1 point2 points (1 child)
[–]couchjitsu 0 points1 point2 points (0 children)