make it easy to write multiple e2e tests (#280)

This commit is contained in:
Will Chen
2025-05-29 00:03:51 -07:00
committed by GitHub
parent 509e044137
commit 647fd0169e
12 changed files with 169 additions and 51 deletions

View File

@@ -2,6 +2,9 @@ import path from "node:path";
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);
}
return path.join(os.homedir(), "dyad-apps", appPath);
}