O'Reilly logo

Angular 2 Development with TypeScript by Yakov Fain and Anton Moiseev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required