Skip to content

Commit 3be32e5

Browse files
Replace phantomjs with chrome headless
1 parent 643e1a2 commit 3be32e5

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

karma.conf.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ module.exports = function ( config ) {
3535
port: 9876,
3636

3737
logLevel: config.LOG_INFO,
38-
browsers: [ 'PhantomJS' ]
38+
browsers: [ 'ChromeHeadless' ],
39+
customLaunchers: {
40+
ChromeHeadless: {
41+
base: 'Chrome',
42+
flags: [
43+
'--no-sandbox',
44+
'--headless',
45+
'--disable-gpu',
46+
'--disable-dev-shm-usage',
47+
'--disable-software-rasterizer'
48+
]
49+
}
50+
}
3951
} );
4052
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"eslint-plugin-mediawiki": "^0.2.1",
3939
"karma": "^1.7.1",
4040
"karma-cli": "^1.0.1",
41-
"karma-phantomjs-launcher": "^1.0.4",
41+
"karma-chrome-launcher": "^3.1.0",
4242
"karma-qunit": "^1.2.1",
4343
"karma-webpack": "^4.0.2",
4444
"qunit": "^1.0.0",

0 commit comments

Comments
 (0)