diff --git a/packages/obsidian-testing-framework/src/index.ts b/packages/obsidian-testing-framework/src/index.ts index b1b7a8a..afc5af0 100644 --- a/packages/obsidian-testing-framework/src/index.ts +++ b/packages/obsidian-testing-framework/src/index.ts @@ -81,7 +81,7 @@ function generateVaultConfig(vault: string) { writeFileSync(path.join(configLocation, `${vaultHash}.json`), "{}"); return vaultHash; } else { - return ""; + return Object.entries(json.vaults).find(a => a[1].path === vault)![0]; } }