Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): tell users how to update an install T3 cannot update #14256

Closedmkantautas(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/14256/headopened View on GitHub

Showing 5 changed files with 76 additions and 16 deletions (loading 2).

x
0 of 5 viewed, 5 left
35 additions and 4 deletionsapps/server/src/provider/providerMaintenance.test.tsModified
View file
@@ -214,19 +214,44 @@
});
});
​
- it("keeps the manual update hint when the install is behind but unowned", () => {
+ it("names the install to update when it is behind but unowned", () => {
expect(
createProviderVersionAdvisory({
driver: driver("packageTool"),
currentVersion: "2.1.110",
latestVersion: "2.1.117",
- maintenanceCapabilities: manualPackageTool,
+ maintenanceCapabilities: {
+ ...manualPackageTool,
+ installPath: "/Applications/Tool.app/Contents/Resources/bin/package-tool",
+ },
}),
).toMatchObject({
status: "behind_latest",
latestVersion: "2.1.117",
updateCommand: null,
canUpdate: false,
+ message:
+ "Version 2.1.117 is out. T3 Code runs /Applications/Tool.app/Contents/Resources/bin/package-tool; update it with the app or tool that installed it.",
+ });
+ });
+​
+ it("offers the update when an owned install is behind", () => {
+ expect(
+ createProviderVersionAdvisory({