diff --git a/testem.js b/testem.js index 63d1edf5..ca6746a2 100644 --- a/testem.js +++ b/testem.js @@ -1,4 +1,4 @@ -/* eslint-env node */ +/* eslint-disable camelcase */ module.exports = { test_page: 'tests/index.html?hidepassed', disable_watching: true, @@ -10,13 +10,17 @@ module.exports = { ], browser_args: { Chrome: { - mode: 'ci', - args: [ - '--disable-gpu', + ci: [ + // --no-sandbox is needed when running Chrome inside a container + process.env.CI ? '--no-sandbox' : null, '--headless', + '--disable-gpu', + '--disable-dev-shm-usage', + '--disable-software-rasterizer', + '--mute-audio', '--remote-debugging-port=0', '--window-size=1440,900' - ] + ].filter(Boolean) } } };