diff --git a/packages/obsidian-testing-framework/src/index.ts b/packages/obsidian-testing-framework/src/index.ts index 92ef1ca..0a72835 100644 --- a/packages/obsidian-testing-framework/src/index.ts +++ b/packages/obsidian-testing-framework/src/index.ts @@ -35,7 +35,6 @@ const obsidianTestFixtures: Fixtures = { let mainFile = path.join(tmp.tmpdir, "obsidian"); let electronFile = path.join(tmp.tmpdir, "electron"); const packageJsonFile = path.join(tmp.tmpdir, "obsidian", "package.json"); - console.log("hello", getExe(), vault, mainFile); try { rmSync(mainFile, { recursive: true }); rmSync(electronFile, { recursive: true }); diff --git a/packages/obsidian-testing-framework/src/util.ts b/packages/obsidian-testing-framework/src/util.ts index d3e5371..a36ed44 100644 --- a/packages/obsidian-testing-framework/src/util.ts +++ b/packages/obsidian-testing-framework/src/util.ts @@ -75,9 +75,7 @@ export async function doWithApp( callback: (a: App) => T | Promise ): Promise { const cbStr = callback.toString(); - await page.exposeFunction("__callback", callback) return await page.evaluate(async (cb) => { - console.log("bye", Object.keys(app)); const func = new Function(`return (${cb})(window.app)`) return await func(); }, cbStr);