import { describe, expect, it, vi } from "vitest"; import { bootCloneWindow } from "./cloneWindowBoot"; import { embeddedTerminal } from "./workbench/contributions"; vi.mock("./features/app/locale", () => ({ installLocaleSync: () => () => {} })); vi.mock("./features/settings/runtime", () => ({ trackRuntimeSettings: () => () => {} })); vi.mock("./workbench/dialogWindow", () => ({ activateDialogWindow: () => () => {} })); vi.mock("./features/github/clone/source", () => ({ githubCloneSource: { id: "github" } })); vi.mock("./features/vcs/cloneWindow", () => ({ activateCloneLaunches: () => () => {}, CloneWindow: () => null })); describe("bootCloneWindow", () => { it("provides the embedded terminal the GitHub Sign In dialog needs", () => { expect(embeddedTerminal()).toBeUndefined(); bootCloneWindow("main"); expect(embeddedTerminal()).toBeTypeOf("function"); }); });