From 5ba21a6c17c08feb9da0839d7a651f971743cfa3 Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Tue, 1 Feb 2022 08:49:32 +0000 Subject: [PATCH] good --- test/base.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/base.test.ts b/test/base.test.ts index 3a1b4ddf..48474877 100644 --- a/test/base.test.ts +++ b/test/base.test.ts @@ -2,14 +2,14 @@ import { _electron as electron } from "playwright"; import { test, expect } from "@playwright/test"; test("Launch electron app", async () => { - const electronApp = await electron.launch({ args: ["./index.js"], cwd: "../build" }); + const electronApp = await electron.launch({ args: ["./build/index.js"] }); const appPath = await electronApp.evaluate(async ({ app }) => { // This runs in the main Electron process, parameter here is always // the result of the require('electron') in the main app script. return app.getAppPath(); }); - console.log(appPath); + console.log(`cwd: ${appPath}`);