Skip to content

Commit

Permalink
Replace obsolete PhantomJS with ChromeHeadless
Browse files Browse the repository at this point in the history
PR-URL: #101
  • Loading branch information
lundibundi authored and belochub committed Oct 19, 2018
1 parent db9455b commit 5267851
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 455 deletions.
14 changes: 7 additions & 7 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ const karmaLogLevels = {
};

const browserLaunchers = {
'Chrome': 'karma-chrome-launcher',
'Firefox': 'karma-firefox-launcher',
'IE': 'karma-ie-launcher',
'Opera': 'karma-opera-launcher',
'PhantomJS': 'karma-phantomjs-launcher',
'Safari': 'karma-safari-launcher'
'Chrome': 'karma-chrome-launcher',
'ChromeHeadless': 'karma-chrome-launcher',
'Firefox': 'karma-firefox-launcher',
'IE': 'karma-ie-launcher',
'Opera': 'karma-opera-launcher',
'Safari': 'karma-safari-launcher'
};

const merge = (arr1 = [], arr2 = []) => common.merge(arr1, arr2);
Expand Down Expand Up @@ -98,7 +98,7 @@ const setKarmaBrowsers = (config, ...browsers) => {
process.exit(1);
}
config.browsers.push(browser);
config.plugins.push(launcher);
if (!config.plugins.includes(launcher)) config.plugins.push(launcher);
});
};

Expand Down
Loading

0 comments on commit 5267851

Please sign in to comment.