Files
modelstudioai__cli/packages/kscli/tests/e2e/command-packs.e2e.test.ts
若麒 b2ca78512f feat: add command pack protocol and plugin management
- define the Command Pack API and integrate pack loading into the CLI runtime
- add product-specific package, command prefix, and credential access policies
- add plugin install, link, list, and remove commands
- add validation, tests, documentation, and generated command references
2026-07-13 15:02:35 +08:00

15 lines
545 B
TypeScript

import { describe, expect, test } from "vite-plus/test";
import { runKscli } from "./helpers.ts";
describe("e2e: kscli Command Pack host", () => {
test("keeps the shared host inactive with the default empty policy", async () => {
const help = await runKscli(["--help"]);
expect(help.exitCode, help.stderr).toBe(0);
expect(help.stderr).not.toContain("plugin install");
const result = await runKscli(["plugin", "list"]);
expect(result.exitCode).not.toBe(0);
expect(result.stderr).toMatch(/Unknown command/i);
});
});