Skip to content

Commit ae58f77

Browse files
committed
Move from phantomjs to chrome headless for testing.
1 parent 61c3beb commit ae58f77

File tree

4 files changed

+144
-313
lines changed

4 files changed

+144
-313
lines changed

karma.conf.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = function(config) {
3333
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
3434
preprocessors: {
3535
'src/gridstack.js': ['coverage'],
36-
'src/gridstack.jQueryUI.js': ['coverage'],
36+
'src/gridstack.jQueryUI.js': ['coverage']
3737
},
3838

3939

@@ -67,8 +67,13 @@ module.exports = function(config) {
6767

6868
// start these browsers
6969
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
70-
browsers: ['PhantomJS'],
71-
70+
browsers: ['ChromeHeadlessCustom'],
71+
customLaunchers: {
72+
ChromeHeadlessCustom: {
73+
base: 'ChromeHeadless',
74+
flags: ['--window-size=800,600']
75+
}
76+
},
7277

7378
// Continuous Integration mode
7479
// if true, Karma captures browsers, runs the tests and exits

0 commit comments

Comments
 (0)