@@ -30,17 +30,17 @@ module.exports = function(config) {
3030 ] ;
3131
3232 let dependencies = process . env . KARMA_TEST_JQUERY ? [ 'node_modules/jquery/dist/jquery.js' ] : [ ] ;
33- dependencies = dependencies . concat ( [
34- 'node_modules/angular/angular.js' ,
35- 'node_modules/angular-animate/angular-animate.js' ,
36- 'node_modules/angular-aria/angular-aria.js' ,
37- 'node_modules/angular-messages/angular-messages.js' ,
38- 'node_modules/angular-sanitize/angular-sanitize.js' ,
39- 'node_modules/angular-touch/angular-touch.js' ,
40- 'node_modules/angular-mocks/angular-mocks.js' ,
41- 'test/angular-material-mocks.js' ,
42- 'test/angular-material-spec.js'
43- ] ) ;
33+ dependencies = dependencies . concat ( [
34+ 'node_modules/angular/angular.js' ,
35+ 'node_modules/angular-animate/angular-animate.js' ,
36+ 'node_modules/angular-aria/angular-aria.js' ,
37+ 'node_modules/angular-messages/angular-messages.js' ,
38+ 'node_modules/angular-sanitize/angular-sanitize.js' ,
39+ 'node_modules/angular-touch/angular-touch.js' ,
40+ 'node_modules/angular-mocks/angular-mocks.js' ,
41+ 'test/angular-material-mocks.js' ,
42+ 'test/angular-material-spec.js'
43+ ] ) ;
4444
4545 const testSrc = process . env . KARMA_TEST_COMPRESSED ? COMPILED_SRC : UNCOMPILED_SRC ;
4646
@@ -82,12 +82,19 @@ module.exports = function(config) {
8282 // Start these browsers, currently available:
8383 // - Chrome
8484 // - ChromeCanary
85+ // - ChromeHeadless
8586 // - Firefox
87+ // - FirefoxHeadless
8688 // - Opera (has to be installed with `npm install karma-opera-launcher`)
8789 // - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
88- // - PhantomJS
8990 // - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
90- browsers : [ 'Firefox' , 'Chrome' ] ,
91+ browsers : [ 'ChromeHeadless' , 'FirefoxHeadless' ] ,
92+ customLaunchers : {
93+ FirefoxHeadless : {
94+ base : 'Firefox' ,
95+ flags : [ '-headless' ] ,
96+ } ,
97+ } ,
9198
9299 client : {
93100 // Do not clear the context as this can cause reload failures with Jasmine
0 commit comments