AngularJS w/ Karma - loading Jasmine before Mocks -
getting module not defined
when trying run angularjs unit tests.
i've narrowed down problem following issue: karma loading angular-mocks.js before it's loading jasmine, angular-mocks.js expects jasmine there first.
how can reorder karma file loads ensure jasmine loaded first?
here's karma config:
basepath = '../../../target'; frameworks = ['jasmine']; files = [ jasmine, jasmine_adapter, 'lib/angular.min.js', 'lib/angular-mocks.js', 'main/js/**/*.js', 'test/js/**/*.js', ];
versions:
- angular (and angular mocks) - 1.0.6
- karma - 0.8.5
this due typo in karma config. apparently happens..
Comments
Post a Comment