I have a child component that is a dropdown select and I need to add formControlName from ReactiveForms, but this dropdown is not implementing the ControlValueAccesor. When I go to test with Karma, the following error appears:
TypeError: dir.valueAccessor.registerOnTouched is not a function
I tried to mock with jasmine but error continues to appear.
PS: I can't modify the child component
formControlNameand it works in runtime, but broken in tests?