Hello!

I'm currently importing @angular/testing 0.0.0-0 into an Angular 2 / 
Typescript project in order to utilize the SpyObject for use in some HTTP 
service Unit testing. This is being done as part of a major upgrade from 
the Angular 2 Beta 17 version to the newest RC. So previously we were 
accessing the SpyObject through the core Angular 2 import. 

I'm running into some Typescript compilation issues in doing this as the 
version of test_component_builder.d.ts that comes along for the ride uses 
the older syntax for declaring ComponentRef that doesn't specify a type 
argument: 

 * The ComponentRef for the component
 */
componentRef: ComponentRef;


I've noticed that the newer version of this file here:

https://github.com/angular/compiler-builds/blob/master/testing/test_component_builder.d.ts

has addressed that issue and is specifying types where necessary, but 
there's only one version of @angular/testing in npm and it contains this 
older version. 

Does anyone know if a new version will be pushed soon that has this fixed? 
Or if not how I can work around this for the time being that doesn't 
involve modifying that file directly? 

Any help is much appreciated!

Thanks!

-jt-

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to