Import e2e (#311)

This commit is contained in:
Will Chen
2025-06-02 21:39:51 -07:00
committed by GitHub
parent 4997a8f2ff
commit 667fc42af4
31 changed files with 2513 additions and 3 deletions

View File

@@ -3,7 +3,8 @@ import os from "node:os";
export function getDyadAppPath(appPath: string): string {
if (process.env.E2E_TEST_BUILD) {
return path.join("/tmp", "dyad-apps-test", appPath);
const electron = getElectron();
return path.join(electron!.app.getPath("userData"), "dyad-apps", appPath);
}
return path.join(os.homedir(), "dyad-apps", appPath);
}