Code samples repository for the examples provided in "Learning Angular 2", published by Packt Publishing - THE BOOK COVERS UP TO RC.1 and hence is severely OUTDATED. PLEASE REFER TO THE LATEST EDITIONS INSTEAD.
Now that Angular 2 has moved into RC.4, the TestComponentBuilder factory is no longer imported from @angular/compiler/testing but rather from @angular/core/testing.
Please bear that in mind when going through the component testing examples in chapter 10, since lines such as this one, code should read as follow.
BEFORE
import { TestComponentBuilder } from '@angular/compiler/testing';
AFTER
import { TestComponentBuilder } from '@angular/core/testing';
Now that Angular 2 has moved into RC.4, the
TestComponentBuilder
factory is no longer imported from@angular/compiler/testing
but rather from@angular/core/testing
.Please bear that in mind when going through the component testing examples in chapter 10, since lines such as this one, code should read as follow.
BEFORE
AFTER
More info at: https://github.com/angular/angular/pull/9590