TypeScript
chore(mobile): e2e runs keep Metro's output, the app's console logs, as metro.log
Julius Marmingedf4132b0404a
diff --git a/scripts/mobile-e2e.ts b/scripts/mobile-e2e.tsindex a198197a6a9..74eae11e3c0 100644--- a/scripts/mobile-e2e.ts+++ b/scripts/mobile-e2e.ts@@ -2,6 +2,7 @@// @effect-diagnostics nodeBuiltinImport:off globalDate:off - Host-side device automation uses Node subprocess and filesystem APIs directly.import * as NodeChildProcess from "node:child_process";+import * as NodeFS from "node:fs";import * as NodeFSP from "node:fs/promises";import * as NodeOS from "node:os";import * as NodePath from "node:path";@@ -224,7 +225,12 @@ async function main() {{cwd: NodePath.join(REPO_ROOT, "apps/mobile"),env: { ...NodeProcess.env, APP_VARIANT: "development", CI: "1" },- stdio: ["ignore", "ignore", "inherit"],+ // The app's console output arrives through Metro; keep it with the run.+ stdio: [+ "ignore",+ NodeFS.openSync(NodePath.join(outputDirectory, "metro.log"), "w"),+ "inherit",+ ],// Its own group, so stopping it also stops the expo child that owns the port.detached: true,},