© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
M. D. CallaghanAngular for Business https://doi.org/10.1007/978-1-4842-9609-7_13

13. Test-Driven Development with Angular

Michael D. Callaghan1  
(1)
Celebration, FL, USA
 

I tried something “new” recently. I built an Angular service in a true TDD fashion. I wrote the tests first, discovering the service interface along the way. This is how it went. I invite you to follow along.

Background

I admit that I am often not a fan of writing unit tests for Angular apps. The tooling I am using (Jasmine and Karma) feel like afterthoughts. They work and they have gotten much better over the past few years, but they still seem like they were written to bolt onto Angular, rather ...

Get Angular for Business: Awaken the Advocate Within and Become the Angular Expert at Work now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.