Skip to content

Commit 615cbb9

Browse files
ossdev07Qix-
authored andcommitted
debug: Replaced phantomJS by chrome
Added script in package.json for running Test-suite Signed-off-by: ossdev07 <ossdev@puresoftware.com>
1 parent e30e8fd commit 615cbb9

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

karma.conf.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
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",
@@ -48,10 +51,10 @@
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",

0 commit comments

Comments
 (0)