cnunciato / ng-mock-component

An Angular module for mocking components.
MIT License
53 stars 13 forks source link

Support component options including providers #19

Closed pkspks closed 5 years ago

pkspks commented 6 years ago

It is not possible to mock a component with providers. This is useful for a component that is a controlValueAccessor.

Fixed in #18

bmtheo commented 5 years ago

Hey, just +1ing here because our team also need that feature

Related SO question : https://stackoverflow.com/questions/57168077/how-to-fix-error-no-value-accessor-for-form-control-with-name-in-angular-unit

bmtheo commented 5 years ago

Just realised the issue is more than 1 year old, @cnunciato should we consider this as "won't do" ?

@pkspks seems to have resolved the issue with https://github.com/cnunciato/ng-mock-component/pull/18, will you merge it ?

Thanks

cnunciato commented 5 years ago

Sorry for the delay! I simply lost sight of this.