Skip to content

Commit 02a14ca

Browse files
committed
Update testem configuration
1 parent 311e889 commit 02a14ca

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

testem.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@ module.exports = {
99
browser_start_timeout: 120,
1010
browser_args: {
1111
Chrome: {
12-
mode: 'ci',
13-
args: ['--disable-gpu', '--headless', '--remote-debugging-port=9222', '--window-size=1440,900'],
12+
ci: [
13+
// --no-sandbox is needed when running Chrome inside a container
14+
process.env.CI ? '--no-sandbox' : null,
15+
'--headless',
16+
'--disable-dev-shm-usage',
17+
'--disable-software-rasterizer',
18+
'--mute-audio',
19+
'--remote-debugging-port=0',
20+
'--window-size=1440,900',
21+
].filter(Boolean),
1422
},
1523
},
1624
};

0 commit comments

Comments
 (0)