From 7aaef26cc813cf13313e0f12d49f592f755d539b Mon Sep 17 00:00:00 2001 From: TC Date: Sun, 4 Sep 2022 22:21:24 +0200 Subject: [PATCH] Add electron flags in tests --- tests/environment.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/environment.js b/tests/environment.js index 70c5c115..c1677420 100644 --- a/tests/environment.js +++ b/tests/environment.js @@ -12,7 +12,15 @@ class TestEnvironment extends NodeEnvironment { await super.setup(); const appPath = path.resolve(__dirname, ".."); - this.global.__APP__ = await electron.launch({ args: [appPath] }); + this.global.__APP__ = await electron.launch({ + args: [ + "--no-sandbox", + "--disable-gpu", + "--whitelisted-ips=", + "--disable-dev-shm-usage", + appPath, + ], + }); } async teardown() {