Use nightly remote T3 CLI in development
- Resolve dev remote package specs to `t3@nightly` - Cover the dev fallback in sshEnvironment tests
This commit is contained in:
1 parent
3af684f852
commit
fcf9ce0b10
2 files changed
+11
No files matched your search
@@ -207,6 +207,13 @@ describe("sshEnvironment", () => {
|
||||
isDevelopment: true,
|
||||
}),
|
||||
).toBe("t3@nightly");
|
||||
expect(
|
||||
__test.resolveRemoteT3CliPackageSpec({
|
||||
appVersion: "0.0.0-dev",
|
||||
updateChannel: "latest",
|
||||
isDevelopment: true,
|
||||
}),
|
||||
).toBe("t3@nightly");
|
||||
});
|
||||
|
||||
it("uses the remote t3 runner for launch and pairing scripts", () => {
|
||||
|
||||
@@ -708,6 +708,10 @@ export function resolveRemoteT3CliPackageSpec(input: {
|
||||
return `t3@${appVersion}`;
|
||||
}
|
||||
|
||||
if (input.isDevelopment) {
|
||||
return "t3@nightly";
|
||||
}
|
||||
|
||||
return input.updateChannel === "nightly" ? "t3@nightly" : "t3@latest";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user