Chapter 9. Unit-testing Angular applications
This chapter covers
- The basics of unit testing with the Jasmine framework
- The main artifacts from the Angular testing library
- Testing the main players of an Angular app: services, components, and the router
- Running unit tests against web browsers with the Karma test runner
- Implementing unit testing in the online auction example
To ensure that your software has no bugs, you need to test it. Even if your application has no bugs today, it may have them tomorrow, after you modify the existing code or introduce new code. Even if you don’t change the code in a particular module, it may stop working properly as a result of changes in another module. Your application code has to be retested regularly, ...
Get Angular 2 Development with TypeScript 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.