Skip to content

Commit 4f303a9

Browse files
authored
fix: karma launch chrome logic
1 parent 17625d6 commit 4f303a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

karma.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Karma configuration
22
// Generated on Fri Jan 11 2019 20:11:14 GMT+0800 (CST)
33

4+
process.env.CHROME_BIN = require('puppeteer').executablePath();
45
const path = require('path')
56

67
module.exports = function(config) {
@@ -77,7 +78,7 @@ module.exports = function(config) {
7778

7879
// start these browsers
7980
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
80-
browsers: ['Chrome'],
81+
browsers: ['ChromeHeadless'],
8182

8283

8384
// Continuous Integration mode

0 commit comments

Comments
 (0)