File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,13 @@ module.exports = function (config) {
4747
4848 // Start these browsers
4949 // 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+ } ,
5157
5258 // Continuous Integration mode
5359 // if true, Karma captures browsers, runs the tests and exits
Original file line number Diff line number Diff line change 3939 "dependencies" : {
4040 "ms" : " ^2.1.1"
4141 },
42+ "scripts" : {
43+ "test" : " mocha"
44+ },
4245 "devDependencies" : {
4346 "@babel/cli" : " ^7.0.0" ,
4447 "@babel/core" : " ^7.0.0" ,
4851 "concurrently" : " ^3.1.0" ,
4952 "coveralls" : " ^3.0.2" ,
5053 "istanbul" : " ^0.4.5" ,
51- "karma" : " ^3 .0.0" ,
54+ "karma" : " ^2 .0.0" ,
5255 "karma-chai" : " ^0.1.0" ,
5356 "karma-mocha" : " ^1.3.0" ,
54- "karma-phantomjs -launcher" : " ^1.0.2 " ,
57+ "karma-chrome -launcher" : " ^2.2.0 " ,
5558 "mocha" : " ^5.2.0" ,
5659 "mocha-lcov-reporter" : " ^1.2.0" ,
5760 "rimraf" : " ^2.5.4" ,
You can’t perform that action at this time.
0 commit comments