File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 41
41
"jasmine-spec-reporter" : " 1.1.2" ,
42
42
"jshint-stylish" : " 0.2.0" ,
43
43
"karma" : " 0.12.23" ,
44
+ "karma-chrome-launcher" : " ^2.0.0" ,
44
45
"karma-coverage" : " 0.2.6" ,
45
46
"karma-firefox-launcher" : " ^1.0.0" ,
46
47
"karma-jasmine" : " 0.1.5" ,
Original file line number Diff line number Diff line change @@ -79,10 +79,14 @@ module.exports = function(config) {
79
79
// - Safari (only Mac)
80
80
// - PhantomJS
81
81
// - IE (only Windows)
82
- browsers : [ 'Firefox' ] ,
82
+ // default in karma.conf.js is Firefox, however, Chrome has much better
83
+ // error messages when writing tests. Call with chrome like this:
84
+ // browsers=Chrome grunt test
85
+ browsers : process . env . browsers ? [ process . env . browsers ] : [ 'Firefox' ] ,
83
86
// Which plugins to enable
84
87
plugins : [
85
88
'karma-firefox-launcher' ,
89
+ 'karma-chrome-launcher' ,
86
90
'karma-ng-html2js-preprocessor' ,
87
91
'karma-jasmine' ,
88
92
'karma-coverage'
You can’t perform that action at this time.
0 commit comments