feat: type the plugin host record, move plugin strings out of core and add lint checks

This commit is contained in:
LukeGus committed 2026-09-29 13:08:39 -05:00
1 parent bba06f7ff6
commit b8bbcd2196
626 files changed
+23884 -4590

No files matched your search

@@ -0,0 +1,12 @@
import { describe, expect, it } from "vitest";
import { guestPluginSettings } from "../../src/backend/routes.js";
describe("guestPluginSettings", () => {
it("names the plugin that keeps each switch an imported guest needs", () => {
expect(guestPluginSettings("rdp", true)).toEqual({
"remote-desktop": { enableRdp: true, rdpPort: 3389 },
docker: { enableDocker: true },
});
expect(guestPluginSettings("ssh", false)).toEqual({});
});
});