From d0cd37f04d3e7c0e51cf4ca19a9c4d54907d555f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 23 Oct 2024 15:15:13 -0400 Subject: [PATCH] await `waitForEvent` --- packages/obsidian-testing-framework/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/obsidian-testing-framework/src/index.ts b/packages/obsidian-testing-framework/src/index.ts index 2d419af..33995bd 100644 --- a/packages/obsidian-testing-framework/src/index.ts +++ b/packages/obsidian-testing-framework/src/index.ts @@ -45,7 +45,7 @@ const obsidianTestFixtures: Fixtures = { !!vault && `obsidian://open?vault=${encodeURI(vault)}`, ].filter((a) => !!a) as string[], }); - electronApp.waitForEvent("window"); + await electronApp.waitForEvent("window"); electronApp.on("console", async (msg) => { console.log( ...(await Promise.all(msg.args().map((a) => a.jsonValue())))