Skip to content

Commit

Permalink
i18next: PhantomJS is replaced by karma-chrome-launcher
Browse files Browse the repository at this point in the history
Removed the karma-phantomJS dependency, and used karma-chrome-launcher
by creating custom-launcher

Signed-off-by: ossdev <ossdev@puresoftware.com>
  • Loading branch information
ossdev07 committed Sep 18, 2018
1 parent 66b1be1 commit 98cbb2d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
8 changes: 7 additions & 1 deletion karma.backward.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ module.exports = function(karma) {
'test/backward/compatibility/**/*.js': [ 'browserify' ]
},

browsers: [ 'PhantomJS' ],
browsers: [‘HeadlessChrome’],
customLaunchers: {
HeadlessChrome: {
base: ‘ChromeHeadless’,
flags: [ ‘—no-sandbox’,],
},
},

port: 9877,

Expand Down
8 changes: 7 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ module.exports = function(karma) {
'src/**/*.js': [ 'browserify', 'coverage' ]
},

browsers: [ 'PhantomJS' ],
browsers: [‘HeadlessChrome’],
customLaunchers: {
HeadlessChrome: {
base: ‘ChromeHeadless’,
flags: [ ‘—no-sandbox’,],
},
},

port: 9876,

Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,20 @@
"i18next-sprintf-postprocessor": "0.2.2",
"i18next-xhr-backend": "1.3.0",
"istanbul": "gotwarlost/istanbul#source-map",
"karma": "1.4.1",
"karma": "2.0.0",
"karma-browserify": "5.1.1",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "2.0.0",
"karma-chrome-launcher": "2.2.0",
"karma-cli": "1.0.1",
"karma-coverage": "douglasduteil/karma-coverage#next",
"karma-coveralls": "1.1.2",
"karma-expect": "1.1.3",
"karma-mocha": "1.3.0",
"karma-phantomjs-launcher": "1.0.2",
"karma-rollup-preprocessor": "3.0.3",
"karma-sinon": "1.0.5",
"karma-spec-reporter": "0.0.26",
"mkdirp": "0.5.1",
"mocha": "3.2.0",
"phantomjs-prebuilt": "2.1.14",
"rimraf": "2.5.4",
"rollup": "0.41.4",
"rollup-plugin-babel": "2.7.1",
Expand Down

0 comments on commit 98cbb2d

Please sign in to comment.