title: ReferenceError in Jasmine test using Chutzpah and ReSharper
body: <p>I'm using Jasmine and Chutzpah to test my TypeScript project in Visual Studio 2013 with PhantomJS. If I run the tests using the Chutzpah context menu extension they work fine but when I run them using the ReSharper test explorer, they fail if there are any external dependencies. The error message is <code>ReferenceError: $ is not defined</code>.</p>
  
  <p>My project structure looks like:</p>
  
  <pre><code>- Scripts
    - MyApp
      - Components
        - DatePicker.ts
    - Tests
      - Components
        - DatePickerTest.ts
    - typings
      - jquery
        - jquery.d.ts
    - jquery-1.10.2.js
  Chutzpah.json
  </code></pre>
  
  <p><code>Chutzpah.json</code> looks like</p>
  
  <pre><code>{
      "Framework": "jasmine",
      "Compile": {
          "Mode": "External",
          "Extensions": [ ".ts" ],
          "ExtensionsWithNoOutput": [ ".d.ts" ]
      },
      "References": [
          {
              "Includes": [
                  "*/Scripts/jquery-1.10.2.js"
              ],
              "Excludes": [ "*/Scripts/*.d.ts" ]
          }
      ],
      "Tests": [
          {
              "Includes": [ "*/Scripts/Tests/*.ts" ],
              "Excludes": [ "*/scripts/Tests/*.d.ts" ]
          }
      ]
  }
  </code></pre>
  
  <p><code>DatePickerTest.ts</code> looks like</p>
  
  <pre><code>/// &lt;reference path="../../myapp/components/datepicker.ts" /&gt;
  import DatePicker = MyApp.Components.DatePicker;
  
  describe("Datepicker", () =&gt; {
      var datePicker: DatePicker
      beforeEach(() =&gt; {
          datePicker = new DatePicker();
      });
  
      // tests
  });
  </code></pre>
  
  <p>Instantiating the <code>DatePicker</code> fails with the message <code>ReferenceError: $ is not defined</code> because the class uses <code>$.extend()</code> in the constructor.</p>
  
  <p>I've tried declaring the reference to jQuery at the top of the test by adding the line <code>/// &lt;chutzpah_reference path="../../jaquery-1.10.2.js" /&gt;</code> but that doesn't make any difference. Plus my understanding is that adding references in the <code>Chutzpah.json</code> means I shouldn't have to do this anyway.</p>
  
  <p>As suggested in <a href="https://stackoverflow.com/a/25639995/1972453">this answer</a>, I have debugged my test in the browser and sure enough jQuery isn't being loaded in the <code>index.html</code> page, so what am I doing wrong?</p>