Fix running tests on Windows

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-08-17 14:20:02 +02:00
parent 1f44f3944f
commit 540fe90609
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,7 @@
"test-gui": "electron-mocha --recursive --reporter spec --require ts-node/register --require-main tests/gui/allow-renderer-process-reuse.ts --full-trace --no-sandbox --renderer tests/gui/**/*.ts",
"test-shared": "electron-mocha --recursive --reporter spec --require ts-node/register --require-main tests/gui/allow-renderer-process-reuse.ts --full-trace --no-sandbox tests/shared/**/*.ts",
"test": "npm run lint && npm run test-gui && npm run test-shared && npm run test-spectron && npm run sanity-checks",
"sanity-checks": "./scripts/ci/ensure-all-file-extensions-in-gitattributes.sh",
"sanity-checks": "bash scripts/ci/ensure-all-file-extensions-in-gitattributes.sh",
"start": "./node_modules/.bin/electron .",
"postshrinkwrap": "ts-node ./scripts/clean-shrinkwrap.ts",
"webpack": "webpack",

View File

@ -1,3 +1,5 @@
// tslint:disable-next-line:no-var-requires
const { app } = require('electron');
app.allowRendererProcessReuse = false;
if (app !== undefined) {
app.allowRendererProcessReuse = false;
}