Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

557 B
Raw Blame
import { afterEach, expect, it, vi } from "vitest";

afterEach(() => {
  vi.doUnmock("./registry-data.json");
  vi.resetModules();
});

it("retries the registry after a failed load", async () => {
  vi.resetModules();
  vi.doMock("./registry-data.json", () => { throw new Error("load failed"); });
  const { loadPresetRegistry } = await import("./registry");
  await expect(loadPresetRegistry()).rejects.toThrow();
  vi.doUnmock("./registry-data.json");
  const registry = await loadPresetRegistry();
  expect(registry.items.length).toBeGreaterThan(0);
});