fix: prevent onboarding TUI auto-delivery (#791) (thanks @roshanasingh4)

This commit is contained in:
Peter Steinberger
2026-01-12 19:38:52 +00:00
parent 298c6eea1f
commit ddd4b55cf6
5 changed files with 79 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import { describe, expect, it, vi, beforeEach } from "vitest";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { dashboardCommand } from "./dashboard.js";
@@ -94,7 +94,10 @@ describe("dashboardCommand", () => {
it("prints SSH hint when browser cannot open", async () => {
mockSnapshot("shhhh");
mocks.copyToClipboard.mockResolvedValue(false);
mocks.detectBrowserOpenSupport.mockResolvedValue({ ok: false, reason: "ssh" });
mocks.detectBrowserOpenSupport.mockResolvedValue({
ok: false,
reason: "ssh",
});
mocks.formatControlUiSshHint.mockReturnValue("ssh hint");
await dashboardCommand(runtime);