Archived
fix: make doctor platform-aware
This commit is contained in:
@@ -42,6 +42,8 @@ describe("node-pty macOS spawn-helper diagnostics", () => {
|
||||
expect(formatted.ok).toBe(false);
|
||||
expect(formatted.lines).toContain(` PI WEB tracking issue: ${PI_WEB_SPAWN_HELPER_ISSUE_URL}`);
|
||||
expect(formatted.lines).toContain(` chmod +x '${fixture.helperPath}'`);
|
||||
expect(formatted.lines).toContain(" Then run `pi-web doctor` again and retry opening a terminal.");
|
||||
expect(formatted.lines.join("\n")).not.toContain("restart");
|
||||
});
|
||||
|
||||
it("passes when the selected helper is executable", async () => {
|
||||
|
||||
@@ -98,7 +98,7 @@ export function formatNodePtyDarwinSpawnHelperCheck(check: NodePtyDarwinSpawnHel
|
||||
` PI WEB tracking issue: ${PI_WEB_SPAWN_HELPER_ISSUE_URL}`,
|
||||
" Proposed workaround:",
|
||||
` ${check.fixCommand}`,
|
||||
" Then restart the pi-web-sessiond/pi-web-server processes.",
|
||||
" Then run `pi-web doctor` again and retry opening a terminal.",
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user