angular2/testing beforeEach is not a function
<p>So I am using Gulp, Gulp-Jasmine, and SystemJS to test an Angular2 demo app. Really simple. I have managed to get a System.config block to work and the spec file to load, however it falls over when attempting to run the beforeEach block with the following error...</p>

<blockquote>
  <p>{ [Error: TypeError: _global.beforeEach is not a function
              at Object.eval (D:/ng2demo/node_modules/angular2/src/testing/matcher
  s.js:26:9)
              at eval (D:/ng2demo/node_modules/angular2/src/testing/matchers.js:20
  5:4)
              at eval (D:/ng2demo/node_modules/angular2/src/testing/matchers.js:20
  6:3)
              at eval (native)
              at Object.eval (D:/ng2demo/node_modules/angular2/src/testing/testing
  .js:10:18)
              at eval (D:/ng2demo/node_modules/angular2/src/testing/testing.js:245
  :4)
              at eval (D:/ng2demo/node_modules/angular2/src/testing/testing.js:246
  :3)
              at eval (native)
          Evaluating D:/ng2demo/node_modules/angular2/src/testing/matchers.js
          Evaluating D:/ng2demo/node_modules/angular2/src/testing/testing.js
          Evaluating D:/ng2demo/node_modules/angular2/testing.js
          Error loading D:/ng2demo/app/assets/services/config.service.spec.js]
    originalErr: [TypeError: _global.beforeEach is not a function] }</p>
</blockquote>

<p>My gulp task is outlined below...</p>

<pre><code>var gulp = require('gulp');
var jasmine = require('gulp-jasmine');
var System = require('systemjs');

gulp.task('newtest', () =&gt; {
    System.config({
        baseURL: "",
        transpiler: 'typescript',
        defaultJSExtensions: true,
        packages: {
            app: {
                format: 'register',
                defaultExtension: 'js'
            },
        },      
        map:{           
            'angular2':'node_modules/angular2',
            'rxjs':'node_modules/rxjs',
        },
    });

    Promise.all([
        System.import('app/assets/services/config.service.spec'),
    ]).then(function(){     
        gulp.src(['app/assets/services/config.service.spec'])
            .pipe(jasmine())
    }).catch(console.error.bind(console));
});
</code></pre>

<p>my spec file looks like this...</p>

<pre><code>/// &lt;reference path="../../../typings/browser/ambient/systemjs/index.d.ts"/&gt;
/// &lt;reference path="../../../typings/browser/ambient/jasmine/index.d.ts"/&gt;

import {Injector, provide} from "angular2/core";
import {Http, BaseRequestOptions, Response, ResponseOptions} from "angular2/http";
import {MockBackend} from "angular2/http/testing";
import {ConfigService} from "./config.service";
import {it, describe, beforeEach, inject, expect} from "angular2/testing";

describe("ConfigService", () =&gt; {

    // THIS IS THE LINE THAT FAILS !!!
    beforeEach(() =&gt; {
        //Do some prep
    });
    it("it does a test and evals to true", () =&gt; {
        expect(true).toBe(true);
    });
});
</code></pre>

<ul>
<li>What am I doing wrong, how do I get past this error ???</li>
<li>Do I need the reference paths at the top of the spec or is there a better way ?</li>
</ul>