I just updated RC3 to RC4 and now i get this error in my tests:
Error: overrideDirective is not supported in this implementation of TestComponentBuilder
In TestComponentBuilder
inside @angular/core@2.0.0-rc.4/testing/test_component_builder.js
i can see this declaration of the method
TestComponentBuilder.prototype.overrideDirective = function(componentType, from, to) {
throw new Error('overrideDirective is not supported in this implementation of TestComponentBuilder.');
};
So now the question is: how do i override a directive?