File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,13 @@ module.exports = function (config) {
47
47
48
48
// Start these browsers
49
49
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
50
- browsers : [ 'PhantomJS' ] ,
50
+ browsers : [ 'HeadlessChrome' ] ,
51
+ customLaunchers : {
52
+ HeadlessChrome : {
53
+ base : 'ChromeHeadless' ,
54
+ flags : [ '--no-sandbox' , ] ,
55
+ } ,
56
+ } ,
51
57
52
58
// Continuous Integration mode
53
59
// if true, Karma captures browsers, runs the tests and exits
Original file line number Diff line number Diff line change 39
39
"dependencies" : {
40
40
"ms" : " ^2.1.1"
41
41
},
42
+ "scripts" : {
43
+ "test" : " mocha"
44
+ },
42
45
"devDependencies" : {
43
46
"@babel/cli" : " ^7.0.0" ,
44
47
"@babel/core" : " ^7.0.0" ,
48
51
"concurrently" : " ^3.1.0" ,
49
52
"coveralls" : " ^3.0.2" ,
50
53
"istanbul" : " ^0.4.5" ,
51
- "karma" : " ^3 .0.0" ,
54
+ "karma" : " ^2 .0.0" ,
52
55
"karma-chai" : " ^0.1.0" ,
53
56
"karma-mocha" : " ^1.3.0" ,
54
- "karma-phantomjs -launcher" : " ^1.0.2 " ,
57
+ "karma-chrome -launcher" : " ^2.2.0 " ,
55
58
"mocha" : " ^5.2.0" ,
56
59
"mocha-lcov-reporter" : " ^1.2.0" ,
57
60
"rimraf" : " ^2.5.4" ,
You can’t perform that action at this time.
0 commit comments