mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Add electron flags in tests
This commit is contained in:
@ -12,7 +12,15 @@ class TestEnvironment extends NodeEnvironment {
|
|||||||
await super.setup();
|
await super.setup();
|
||||||
|
|
||||||
const appPath = path.resolve(__dirname, "..");
|
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() {
|
async teardown() {
|
||||||
|
|||||||
Reference in New Issue
Block a user