The Posts Service spec which verifies the number of posts is seemingly returning live data via the getPosts() method. Is this the case? Ideally, the data should be mocked somewhere/somehow, but I'm not seeing that. Could you clarify?
Even when testing the actual service, it's best to avoid any over-the-wire communication to ensure the service is isolated.
The Posts Service spec which verifies the number of posts is seemingly returning live data via the
getPosts()
method. Is this the case? Ideally, the data should be mocked somewhere/somehow, but I'm not seeing that. Could you clarify?Even when testing the actual service, it's best to avoid any over-the-wire communication to ensure the service is isolated.