title: Angular2 testing with TestBed getting Zone undefined Error
body: <p>I've been working off the Angular tutorial <a href="https://angular.io/docs/ts/latest/guide/testing.html" rel="nofollow noreferrer">https://angular.io/docs/ts/latest/guide/testing.html</a> to build my first unit tests. I am able to get everything to work until I get to the TestBed example. When I add TestBed into the mix I get 'Uncaught ReferenceError: Zone is not defined'. </p>
  
  <p>In my spec-bundle I zone declared and initialized the Testbed environment. </p>
  
  <p>Spec-bundle</p>
  
  <pre><code>Error.stackTraceLimit = Infinity;
  
  require('phantomjs-polyfill');
  
  require('core-js/es6');
  require('core-js/es7/reflect');
  
  // Typescript emit helpers polyfill
  require('ts-helpers');
  
  // DO NOT REORDER: Dependency order needs to be strictly followed
  require('zone.js/dist/zone');
  require('zone.js/dist/long-stack-trace-zone');
  require('zone.js/dist/async-test');
  require('zone.js/dist/fake-async-test');
  require('zone.js/dist/sync-test');
  require('zone.js/dist/proxy');
  require('zone.js/dist/jasmine-patch');
  
  // RxJS
  require('rxjs/Rx');
  
  var testing = require('@angular/core/testing');
  var browser = require('@angular/platform-browser-dynamic/testing');
  
  testing.TestBed.initTestEnvironment(
      browser.BrowserDynamicTestingModule,
      browser.platformBrowserDynamicTesting()
  );
  
  Object.assign(global, testing);
  
  window.__karma__ &amp;&amp; require('./karma-require');
  </code></pre>
  
  <p>Test file</p>
  
  <pre><code>import { ComponentFixture, TestBed } from '@angular/core/testing';   
  import { SomeComponent } from './some.component';
  
  let fixture: ComponentFixture&lt;SomeComponent&gt;;
  
  describe('Orders Component', () =&gt; {
  
      let ordersComponentStub: SomeComponent;
  
      beforeEach(() =&gt; {
          TestBed.configureTestingModule({
              declarations: [SomeComponent]
  
          });
      });
  </code></pre>
  
  <p>});</p>