title: Providing "entryComponents" for a TestBed
body: <p>I have a component which receives a component class of component to dynamically create as a child. </p>
  
  <pre><code>let componentFactory = this.componentFactoryResolver.resolveComponentFactory(componentToCreate);
  this.componentReference = this.target.createComponent(componentFactory);
  </code></pre>
  
  <p>I'm trying to write a unit test and pass some TestComponent for it to create &amp; render.</p>
  
  <pre><code>TestBed
    .configureTestingModule(&lt;any&gt;{
      declarations: [MyAwesomeDynamicComponentRenderer, TestHostComponent],
      entryComponents: [TestComponent],
    });
  </code></pre>
  
  <p>There is casting to "any" because <code>configureTestingModule</code> expects <code>TestModuleMetadata</code> which doesn't have <code>entryComponents</code> but I get error: "No component factory found for TestComponent".</p>
  
  <p>How can I provide the <code>entryComponents</code> to a <code>TestBed</code>?</p>