The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 14:30 UTC
chore(mobile): e2e runs keep Metro's output, the app's console logs, as metro.log
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 27, 2026 at 18:26 UTC
df4132b0404a3850eec7fb0a72592b7682cd952f
1 file changed
+7
-1
scripts/mobile-e2e.ts
+7
-1
@@ -2,6 +2,7 @@
2
// @effect-diagnostics nodeBuiltinImport:off globalDate:off - Host-side device automation uses Node subprocess and filesystem APIs directly.
3
4
import * as NodeChildProcess from "node:child_process";
5
+import * as NodeFS from "node:fs";
6
import * as NodeFSP from "node:fs/promises";
7
import * as NodeOS from "node:os";
8
import * as NodePath from "node:path";
@@ -224,7 +225,12 @@ async function main() {
225
{
226
cwd: NodePath.join(REPO_ROOT, "apps/mobile"),
227
env: { ...NodeProcess.env, APP_VARIANT: "development", CI: "1" },
227
- stdio: ["ignore", "ignore", "inherit"],
228
+ // The app's console output arrives through Metro; keep it with the run.
229
+ stdio: [
230
+ "ignore",
231
+ NodeFS.openSync(NodePath.join(outputDirectory, "metro.log"), "w"),
232
+ "inherit",
233
+ ],
234
// Its own group, so stopping it also stops the expo child that owns the port.
235
detached: true,
236
},