Run the GarbageCollectionTests only in an Electron process
This commit is contained in:
parent
f790b3aa13
commit
d2febaa86d
|
@ -27,8 +27,7 @@ var TESTS = {
|
|||
RealmTests: require('./realm-tests'),
|
||||
ResultsTests: require('./results-tests'),
|
||||
QueryTests: require('./query-tests'),
|
||||
MigrationTests: require('./migration-tests'),
|
||||
GarbageCollectionTests: require('./garbage-collection'),
|
||||
MigrationTests: require('./migration-tests')
|
||||
};
|
||||
|
||||
// encryption is not supported on windows
|
||||
|
@ -52,6 +51,13 @@ if (isNodeProcess) {
|
|||
console.log("Skipping the AsyncTests");
|
||||
}
|
||||
|
||||
const isElectronProcess = !!process.versions.electron;
|
||||
if (isElectronProcess) {
|
||||
TESTS.GarbageCollectionTests = require('./garbage-collection');
|
||||
} else {
|
||||
console.log("Skipping the Electron specific GarbageCollectionTests");
|
||||
}
|
||||
|
||||
var SPECIAL_METHODS = {
|
||||
beforeEach: true,
|
||||
afterEach: true,
|
||||
|
|
Loading…
Reference in New Issue