Implementing
fake versions of objects when testing can potentially speed up the process. The tests will fail if an object is making an
external call to a resource that is somewhere on the internet when no connection is available. It should be possible to run your tests locally and in any other environment
without depending on the
internet. Performing that change alone will make your test suite more consistent in terms of the time it takes to run them. To learn more about mocking, read this article on medium
https://bit.ly/3dBVX8s.