I am using Jasmine to writing Unit Test for my AngularJS project, But it seem dulicate code because in each spec file I have to add some references like below
/// <reference path="../../../bower_components/jasmine/lib/jasmine-core/jasmine.js" />
/// <reference path="../../../bower_components/jasmine/lib/jasmine-core/jasmine-html.js" />
/// <reference path="../../../bower_components/jasmine/lib/jasmine-core/boot.js" />
/// <reference path="../../../bower_components/jquery/dist/jquery.min.js" />
/// <reference path="../../../bower_components/jquery/dist/jquery.js" />
/// <reference path="../../../bower_components/angular/angular.js" />
/// <reference path="../../../vendors/js/jBox.js" />
/// <reference path="../../../bower_components/angular-mocks/angular-mocks.js" />
And so on
Is there a way extract the references into one external file, then I just add only that file on each test spec file.
Aucun commentaire:
Enregistrer un commentaire