test: there is only --ci (#20794)
This commit is contained in:
parent
b275273044
commit
6781d5e3c8
19 changed files with 55 additions and 251 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue