Skip to content

Commit 7aaef26

Browse files
committed
Add electron flags in tests
1 parent 0a08eaa commit 7aaef26

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/environment.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ class TestEnvironment extends NodeEnvironment {
1212
await super.setup();
1313

1414
const appPath = path.resolve(__dirname, "..");
15-
this.global.__APP__ = await electron.launch({ args: [appPath] });
15+
this.global.__APP__ = await electron.launch({
16+
args: [
17+
"--no-sandbox",
18+
"--disable-gpu",
19+
"--whitelisted-ips=",
20+
"--disable-dev-shm-usage",
21+
appPath,
22+
],
23+
});
1624
}
1725

1826
async teardown() {

0 commit comments

Comments
 (0)