Checking for process before checking the process.versions.electron
This commit is contained in:
parent
bd4dbd7f6a
commit
b37fc3f2b0
|
@ -51,7 +51,7 @@ if (isNodeProcess) {
|
|||
console.log("Skipping the AsyncTests");
|
||||
}
|
||||
|
||||
const isElectronProcess = !!process.versions.electron;
|
||||
const isElectronProcess = process && process.versions && !!process.versions.electron;
|
||||
if (isElectronProcess) {
|
||||
TESTS.GarbageCollectionTests = require('./garbage-collection');
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue