Mocks are a great way of preventing AJAX calls in tests, but they can also help you isolate side effects and impurities that can create complicated tests.
As you learned …16m 0
Testing can be simple. In fact, it is simple. Well, it is simple until impurities slip in.
Code that would be easy to test becomes a nightmare as soon as you get impure …11m 5