diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 59096f6..8e38623 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/packages/obsidian-testing-framework/src/index.ts b/packages/obsidian-testing-framework/src/index.ts index 488e34e..3f9d83a 100644 --- a/packages/obsidian-testing-framework/src/index.ts +++ b/packages/obsidian-testing-framework/src/index.ts @@ -49,7 +49,7 @@ function checkToy() { function generateVaultConfig(vault: string) { const vaultHash = randomBytes(8).toString("hex").toLocaleLowerCase(); let configLocation; - console.log("vault is", vault) + console.log("vault is", vault, existsSync(vault)); checkToy(); if (process.platform == "win32") { configLocation = path.join(`${process.env.APPDATA}`, "Obsidian"); diff --git a/packages/obsidian-testing-framework/src/util.ts b/packages/obsidian-testing-framework/src/util.ts index 2ed19a8..83a8b25 100644 --- a/packages/obsidian-testing-framework/src/util.ts +++ b/packages/obsidian-testing-framework/src/util.ts @@ -134,7 +134,7 @@ export async function doWithApp( */ export function waitForIndexingComplete(page: Page) { return page.evaluateHandle("window.app").then((appHandle) => { - return appHandle.evaluate(() => { + return appHandle.evaluate((app) => { return new Promise((res2, rej2) => { let resolved = false; app.metadataCache.on("resolved", () => {