realm-js/tests/electron/package.json
Kræn Hansen e4e1431c55 Running js tests in Electron renderer process (#1196)
* 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
2017-08-11 10:30:57 +02:00

21 lines
592 B
JSON

{
"name": "realm-js-electron-tests",
"private": true,
"description": "Test harness running the Realm JS tests in the Electron renderer process.",
"main": "index.js",
"scripts": {
"prepublish": "electron-rebuild -t dev",
"start": "electron ./app/main.js",
"test": "node ./runner.js"
},
"devDependencies": {
"electron": "^1.6.11",
"electron-rebuild": "^1.6.0",
"jasmine": "../node_modules/jasmine",
"jasmine-console-reporter": "../node_modules/jasmine-console-reporter",
"realm": "../..",
"realm-tests": "../js",
"spectron": "^3.7.2"
}
}