Challenges in testing
One way to solve this cycle of having bugs reported in production, or close to production, is to write test cases in your application. Most of the developers I have worked with at some point have had a diversion to writing test cases in their applications. It felt like wasted time in writing this extra piece of code on top of their own logic to test, and one of the reasons was that it was way too complex to just set up the testing framework.
Angular is brilliant in identifying this pain point, and that is the reason they created the Angular in a way that allows developers to write testable code without going out of their way. This is achieved through dependency injection in Angular. The Angular team made sure all the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access