title: Running jasmine tests for a component with NgZone dependency
body: <p>How would I go ahead with running a jasmine test for the following component:</p>
  
  <pre><code>@Component({
    moduleId: module.id,
    selector: "testComp",
    template: "&lt;div&gt;{{value}}&lt;/div&gt;",
  })
  export class TestComp {
    public value: string = "This is me";
    constructor(public zone: NgZone) {
      this.zone.run(() =&gt; console.log("zone is here"));
    }
  }
  </code></pre>
  
  <p>The following fails with the  Can't resolve all parameters for NgZone:</p>
  
  <pre><code>describe("test", () =&gt; {
      let fixture;
      let component;
  
  beforeEach(async(() =&gt; {
      TestBed.configureTestingModule({
          declarations: [TestComp],
          schemas: [NO_ERRORS_SCHEMA],
          providers: [NgZone]
      }).compileComponents;
  }));
  beforeEach(() =&gt; {
      fixture = TestBed.createComponent(TestComp);
      component = fixture.debugElement.componentInstance;
  });
  it("should check that the component is created", () =&gt; {
      expect(component).toBeTruthy();
  });
  </code></pre>
  
  <p>})</p>
  
  <p>using Angular 4.1.3. I found the MockNgZone class @ <a href="https://no-shadow-angular-io.firebaseapp.com/docs/ts/latest/api/core/testing/MockNgZone-class.html" rel="noreferrer">https://no-shadow-angular-io.firebaseapp.com/docs/ts/latest/api/core/testing/MockNgZone-class.html</a>. But it seems unavailable in the @angular/core/testing for this particular version:
  <a href="https://i.stack.imgur.com/7gMev.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7gMev.png" alt="enter image description here"></a></p>
  
  <p>Anybody knows what I should do to test this component?</p>
  
  <p>Regards</p>