Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(cli): t3 up's pairing hint keeps --base-dir #29684

Mergedsaphid(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/29684/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 12 additions and 5 deletions.

x
0 of 2 viewed, 2 left
2 additions and 1 deletionapps/server/src/cli/up.test.tsModified
View file
@@ -180,6 +180,7 @@
label: "the local network opens",
+ prints: "Run `t3 pair --base-dir <baseDir>`.",
installed: true,
env: "T3CODE_LAN=false\n",
args: ["--lan"],
@@ -335,7 +336,7 @@
if (input.prints !== undefined) {
- expect(lines.join("\n")).toContain(input.prints);
+ expect(lines.join("\n")).toContain(input.prints.replace("<baseDir>", baseDir));
expect(exit._tag).toBe(input.restartFails === true ? "Failure" : "Success");
expect({ installs, restarts }).toEqual({
10 additions and 4 deletionsapps/server/src/cli/up.tsModified
View file
@@ -171,12 +171,12 @@
].join("\n");
​
-const formatNextSteps = (routes: Routes, serviceInstalled: boolean) =>
+const formatNextSteps = (routes: Routes, serviceInstalled: boolean, pairCommand: string) =>
...(routes.connect