I'm building an ASP.NET website in Visual Sutio 2013 and I'm testing with Jasmine and the Chutzpah test runner plugin. The tests are found alright, but the needed references are not loaded. I've tried starting my test file with the following to make sure the path is correct (and each version alone), but it still complaints that the angular value does not exist when I run the test. What am I missing?
/// <reference path="/Scripts/angular.js" />
/// <reference path="../Scripts/angular.js" />
/// <reference path="../../Scripts/angular.js" />
/// <reference path="../../../Scripts/angular.js" />
/// <reference path="../../../../Scripts/angular.js" />
/// <reference path="../../../../../Scripts/angular.js" />
/// <reference path="../../../../../../Scripts/angular.js" />
/// <reference path="../../../../../../../Scripts/angular.js" />
/// <reference path="../../../../../../../../Scripts/angular.js" />
/// <reference path="../../../../../../../../../Scripts/angular.js" />
/// <reference path="../../../../../../../../../../Scripts/angular.js" />
/// <reference path="../../../../../../../../../../../Scripts/angular.js" />
Even though this should have worked (as far as I understand), I also tried putting a chutzpah.json
file in my project root with the following configuration:
"RootReferencePathMode":"SettingsFileDirectory"
and the following reference in the test file:
/// <reference path="/Scripts/angular.js" />
But this did nothing to help. Since Chutzpah does nothing to acknowledge the existence of the reference tag, I'm not even sure that has found it (though it obviously found the relevant test file).