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())))