title: Unable to test component that uses translation pipe (The pipe 'translate' could not be found)
body: <p>I have a component that uses ngx-translate for localization. The basic unit test to create the module does not work. It fails with the following error:</p>
  
  <pre><code>PatientDataComponent should create FAILED
     [ERROR -&gt;]{{ 'patient.information' | translate }}
    &lt;/p&gt;
    The pipe 'translate' could not be found ("&lt;p&gt;[ERROR -&gt;]{{ 'patient.information' | translate }}&lt;/p&gt;"): ng:///DynamicTestModule/PatientDataComponent.html@1:2
  error properties: Object({ ngSyntaxError: true, ngParseErrors: [ The pipe 'translate' could not be found ("&lt;p&gt;"): ng:///DynamicTestModule/PatientDataComponent.html@1:2 ] })
  </code></pre>
  
  <p>The application is able to switch languages; thus ngx-translate seems to work. Except in my unit test. The test code looks as follows:</p>
  
  <pre><code>import { async, ComponentFixture, TestBed } from '@angular/core/testing';
  import { PatientDataComponent } from './patient-data.component';
  
  describe('PatientDataComponent', () =&gt; {
    let component: PatientDataComponent;
    let fixture: ComponentFixture&lt;PatientDataComponent&gt;;
  
    beforeEach(async(() =&gt; {
      TestBed.configureTestingModule({
        declarations: [PatientDataComponent]
      })
        .compileComponents();
    }));
  
    beforeEach(() =&gt; {
      fixture = TestBed.createComponent(PatientDataComponent);
      fixture.detectChanges();
    });
  
    it('should create', () =&gt; {
      expect(component).toBeTruthy();
    });
  });
  </code></pre>
  
  <p>What do I need to do to resolve this error and make the component testable?</p>