Skip to content

Commit

Permalink
Using chrome headless to perform local tests
Browse files Browse the repository at this point in the history
  • Loading branch information
diegonvs committed May 16, 2018
1 parent 5af3210 commit 38f2f58
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

const lernaJson = require('./lerna.json');

let localLaunchers = {
ChromeNoSandboxHeadless: {
base: 'Chrome',
flags: [
'--no-sandbox',
'--headless',
'--disable-gpu',
// Without a remote debugging port, Google Chrome exits immediately.
'--remote-debugging-port=9333',
],
},
};

module.exports = function(config) {
config.set({
browserify: {
Expand All @@ -21,14 +34,16 @@ module.exports = function(config) {
},
},

browsers: ['Chrome'],
browsers: Object.keys(localLaunchers),

client: {
mocha: {
timeout: 4000,
},
},

customLaunchers: localLaunchers,

exclude: ['packages/metal-isomorphic/**/*.js'],

files: [
Expand Down

0 comments on commit 38f2f58

Please sign in to comment.