title: Error: No provider for Compiler! DI Exception Angular 2 Testing
body: <p>The given unit test throws error when executed using npm test command. It says there was a DI Exception with error message "Error: No provider for compiler!"</p>
  
  <pre><code>import {TestComponentBuilder} from "@angular/compiler/testing";
  
  import {
      expect,
      it,
      describe,
      async,
      inject,
      beforeEach,
      beforeEachProviders
  } from "@angular/core/testing";
  
  import {provide} from '@angular/core';
  import {TestService} from "../services/Test.service";
  import {TestComponent} from "./Test.component";
  
  describe('Component: TestComponent', () =&gt; {
  
      let tcb;
  
      beforeEachProviders(() =&gt; [
          TestComponentBuilder,
          TestComponent,
          TestService
      ]);
  
      beforeEach(inject([TestComponentBuilder], (testComponentBuilder) =&gt; {
          tcb = testComponentBuilder;
      }));
  
      it('getTest', testGetTest =&gt; {
          **tcb.createAsync(TestComponent)**
              .then(fixture =&gt; {
                  let TestComponent = fixture.componentInstance;
                  TestComponent.selectedUserId = 3;
                  expect(TestComponent.selectedUserId).beEqual(3);
  
              });
      });
  });
  </code></pre>
  
  <p>The error is thrown most probably on tcb.createAsync</p>
  
  <p>Following dependencies were added to project</p>
  
  <pre><code>"jasmine-core": "~2.4.1",
  "karma": "1.x || ^0.13.0",
  "karma-chrome-launcher": "1.x || ~0.2.2",
  "karma-firefox-launcher": "1.x || ~0.1.7",
  "karma-cli": "*",
  "karma-jasmine": "1.x || ^0.3.6",
  "karma-spec-reporter": "0.0.13",
  "browserify": "latest",
  "karma-browserify":  "latest" 
  </code></pre>