Add electron flags in tests

This commit is contained in:
TC
2022-09-04 22:21:24 +02:00
parent 0a08eaaa3c
commit 7aaef26cc8

View File

@ -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() {