test(commands): trim dashboard setup resets and dedupe bind cases

This commit is contained in:
Peter Steinberger
2026-02-22 00:28:12 +00:00
parent 076c5ebaef
commit 2fd57cec0b
2 changed files with 19 additions and 29 deletions

View File

@@ -58,13 +58,13 @@ function mockSnapshot(token = "abc") {
describe("dashboardCommand", () => {
beforeEach(() => {
resetRuntime();
readConfigFileSnapshotMock.mockReset();
resolveGatewayPortMock.mockReset();
resolveControlUiLinksMock.mockReset();
detectBrowserOpenSupportMock.mockReset();
openUrlMock.mockReset();
formatControlUiSshHintMock.mockReset();
copyToClipboardMock.mockReset();
readConfigFileSnapshotMock.mockClear();
resolveGatewayPortMock.mockClear();
resolveControlUiLinksMock.mockClear();
detectBrowserOpenSupportMock.mockClear();
openUrlMock.mockClear();
formatControlUiSshHintMock.mockClear();
copyToClipboardMock.mockClear();
});
it("opens and copies the dashboard link by default", async () => {