github.com/hernad/nomad@v1.6.112/ui/testem.js (about) 1 /** 2 * Copyright (c) HashiCorp, Inc. 3 * SPDX-License-Identifier: MPL-2.0 4 */ 5 6 'use strict'; 7 8 const config = { 9 test_page: 'tests/index.html?hidepassed', 10 disable_watching: true, 11 launch_in_ci: ['Chrome'], 12 launch_in_dev: ['Chrome'], 13 browser_start_timeout: 120, 14 parallel: -1, 15 browser_args: { 16 // New format in testem/master, but not in a release yet 17 // Chrome: { 18 // ci: ['--headless', '--disable-gpu', '--remote-debugging-port=9222', '--window-size=1440,900'], 19 // }, 20 Chrome: { 21 ci: [ 22 // --no-sandbox is needed when running Chrome inside a container 23 process.env.CI ? '--no-sandbox' : null, 24 '--headless', 25 '--disable-dev-shm-usage', 26 '--disable-software-rasterizer', 27 '--mute-audio', 28 '--remote-debugging-port=0', 29 '--window-size=1440,900', 30 ].filter(Boolean), 31 }, 32 }, 33 }; 34 35 module.exports = config;