mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-12 07:14:23 +00:00
e4e1431c55
* First take on running the tests inside an Electron render process * Making progress * Making it possible to override the location of the admin token * Ignoreing the realm-object-server files * Fixing a console.log to return a string instead of a boolean But it should probably be removed entirely * Making the downloaded ROS log less * Adjusting comments in the test.sh * Checking number of windows to determine an Electron crash * Added a test that triggers garbage collection of ArrayBuffers * Enabled the ability to run the tests in Electrons main process * Run tests first in main process and the render * Added a README.md that documents how Electron tests can be run * Added a comment on why the garbage-collection test was added. * Waiting with reading the admin token, until it is actually used * Disabling the GarbageCollectionTests for now
13 lines
376 B
JavaScript
13 lines
376 B
JavaScript
"use strict";
|
|
|
|
const remote = require("electron").remote;
|
|
|
|
const options = remote.getGlobal("options");
|
|
if (options.runIn === "render") {
|
|
const jasmine = require("./jasmine.js").execute(options.filter);
|
|
jasmine.onComplete((passed) => {
|
|
// Add a delay if this happens too fast, to allow the WebDriver to connect first.
|
|
remote.process.exit(passed ? 0 : -1);
|
|
});
|
|
}
|