Testing an Angular Component with Mock Services
When testing a component with service dependencies, the best practice is mocking them, in order to test the component in an isolated environment. In fact, our purpose is testing the component, not the services, that can be trouble, especially if they try to interact with a server.In this article we will see the two methods … Continue reading Testing an Angular Component with Mock Services