refactor: use env var to skip native module tests on win32/debug (#13890)

This commit is contained in:
Jeremy Apthorp 2018-07-31 20:33:13 -07:00 committed by Samuel Attard
parent 4990b3990b
commit a4f02724bf
2 changed files with 3 additions and 1 deletions

View file

@ -99,7 +99,7 @@ if (global.isCi) {
})
}
global.nativeModulesEnabled = process.platform !== 'win32' || process.execPath.toLowerCase().indexOf('\\out\\d\\') === -1
global.nativeModulesEnabled = !process.env.ELECTRON_SKIP_NATIVE_MODULE_TESTS
// Register app as standard scheme.
global.standardScheme = 'app'