Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(cli): t3 service restart no longer says another home's service is not installed #29848

Closedsaphid(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/29848/headopened View on GitHub

Showing 2 changed files with 65 additions and 2 deletions.

x
0 of 2 viewed, 2 left
62 additions and 1 deletionapps/server/src/cli/service.test.tsModified
View file
@@ -28,7 +28,7 @@
​
function makeTestService(
serviceStatus: BootService.BootServiceStatus,
- restartOutcome: "restarted" | "queued" = "restarted",
+ restartOutcome: "restarted" | "queued" | "skipped" = "restarted",
) {
const installOptions: Array<Parameters<BootService.BootService["Service"]["install"]>[0]> = [];
const restarts: Array<true> = [];
@@ -146,6 +146,67 @@
}),
​
+ it.effect.each([
+ {
+ label: "another home's service",
+ installed: true,
+ installedBaseDir: "/other/t3",
+ expected: "The T3 Code service serves /other/t3",
+ },
+ {
+ label: "an unknown service home",
+ installed: true,
+ installedBaseDir: undefined,
+ expected: "T3 home could not be determined",
+ },
+ {
+ label: "no service",
+ installed: false,