Angular Unit Testing Tricks and Tips

Riviera
In this workshop, we will cover how to successfully unit test your Angular 2 apps. We will look at common testing tasks and how to avoid the pitfalls when writing unit tests.
Suitable for developers who:
  • have a basic understanding of Angular 2
  • are looking to start or improve their unit testing
You will learn how to:
  • use the Angular 2 test helpers such as the TestBed
  • create effective unit tests for Services, Pipes, Directives and Components
  • write tests that handle asynchronous code
  • use best practices for tests that involve Dependency Injection, Observables, Routing, Lifecycle Hooks
  • to keep your tests maintainable so that they can be worked on by other developers months and years later
What you’ll need:
  • your own laptop – you will be hands-on building and testing code
  • a basic understanding of Angular 2 – the course does not teach Angular 2
  • a desire to make the world a better place (through testing)
Note that this course will not cover writing end to end tests with Protractor.