简体   繁体   中英

TypeScript - jasmine - Chutzpah - AngularJS

Hi we are using angulatJs with typescript. For unit testing we are using Jasmine. And to run jasmine we are using .

When i am trying to build project it giving me an error that

Where i have added reference to the .spect.ts correctly.

 ///<reference path="../external/angularJS/1.0.8/angular.d.ts" />
 ///<reference path="../external/angularJS/1.0.8/angular-ui.d.ts" />
 ///<reference path="../external/angularJS/1.0.8/angular-mocks.d.ts" />
 ///<reference path="../_references.d.ts" />

But still i am getting the

Any suggestion ??

Thanks

Those references are to the .d.ts file but Chutzpah needs to know where the actual implementation .js files are. You can do this using

/// <chutzpah_reference path="path/to/angular.js" >
/// <chutzpah_reference path="path/to/angular-ui.js" >
/// <chutzpah_reference path="path/to/angular-mock.js" >

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM