test: there is only --ci (#20794)

This commit is contained in:
Jeremy Apthorp 2019-10-30 16:38:21 -07:00 committed by GitHub
parent b275273044
commit 6781d5e3c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 55 additions and 251 deletions

View file

@ -76,14 +76,11 @@ ipcMain.on('echo', function (event, msg) {
global.setTimeoutPromisified = util.promisify(setTimeout)
global.isCi = !!argv.ci
if (global.isCi) {
process.removeAllListeners('uncaughtException')
process.on('uncaughtException', function (error) {
console.error(error, error.stack)
process.exit(1)
})
}
process.removeAllListeners('uncaughtException')
process.on('uncaughtException', function (error) {
console.error(error, error.stack)
process.exit(1)
})
global.nativeModulesEnabled = !process.env.ELECTRON_SKIP_NATIVE_MODULE_TESTS
@ -122,7 +119,7 @@ app.on('ready', function () {
window = new BrowserWindow({
title: 'Electron Tests',
show: !global.isCi,
show: false,
width: 800,
height: 600,
webPreferences: {