deeleman / learning-angular2

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.
https://www.packtpub.com/web-development/learning-angular-2
108 stars 59 forks source link

TestComponentBuilder now lives in @angular/core/testing #17

Closed deeleman closed 8 years ago

deeleman commented 8 years ago

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';

More info at: https://github.com/angular/angular/pull/9590