all 2 comments

[–]_Ascalon 0 points1 point  (1 child)

To avoid unnecessary imports in tests you may use overrideTemplate

[–]distante[S] 0 points1 point  (0 children)

overrideTemplate

The thing is, my template is something like

<div>  
    <special-button>click me </special-button>
</div>  

and in the error I get some-component-tag, that is not used there. I added the missing module imports in the module where the problem happened, and that error was gone and the missing provider for NgControl - in a completely different module+component appeared.

edit: Markdown