Skip to content

Commit

Permalink
specify browser type
Browse files Browse the repository at this point in the history
  • Loading branch information
poliha committed Apr 14, 2020
1 parent 53cc2ae commit 750ffd6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html

const chromeBrowser = process.env.CIRCLE_BUILD_NUM ? 'Chrome' : 'Chromium'

module.exports = function (config) {
config.set({
basePath: '',
Expand All @@ -25,7 +27,13 @@ module.exports = function (config) {
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chromium'],
browsers: [chromeBrowser],
customLaunchers: {
ChromeHeadlessCI: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
singleRun: false
});
};

0 comments on commit 750ffd6

Please sign in to comment.