maybe xvfb?

This commit is contained in:
vapormusic 2022-02-01 23:30:05 +07:00
parent f944cd2081
commit 66e985df7b
2 changed files with 2 additions and 1 deletions

View file

@ -17,7 +17,7 @@ test("Launch electron app", async () => {
console.log(fs.readdirSync(paths.main))
const electronApp = await electron.launch({ args: ['build/index.js', '--enable-logging','--no-sandbox'], cwd: paths.root });
const electronApp = await electron.launch({ args: ['--enable-logging','--no-sandbox','build/index.js'], cwd: paths.root });
const appPath = await electronApp.evaluate(async ({ app }) => {
// This runs in the main Electron process, parameter here is always