refactor: remove qa cli pass-through wrapper

This commit is contained in:
Ayaan Zaidi
2026-04-11 10:27:59 +05:30
parent 478a2e15c5
commit d8ab47d6af
3 changed files with 2 additions and 30 deletions

View File

@@ -131,8 +131,8 @@ const entrySpecs: readonly CommandGroupDescriptorSpec<SubCliRegistrar>[] = [
},
{
commandNames: ["qa"],
loadModule: () => import("../qa-cli.js"),
exportName: "registerQaCli",
loadModule: () => import("../../plugin-sdk/qa-lab.js"),
exportName: "registerQaLabCli",
},
{
commandNames: ["hooks"],

View File

@@ -1,22 +0,0 @@
import { Command } from "commander";
import { beforeEach, describe, expect, it, vi } from "vitest";
const registerQaLabCli = vi.hoisted(() => vi.fn());
vi.mock("../plugin-sdk/qa-lab.js", () => ({
registerQaLabCli,
}));
describe("qa cli", () => {
beforeEach(() => {
registerQaLabCli.mockReset();
});
it("delegates qa registration through the plugin-sdk seam", async () => {
const { registerQaCli } = await import("./qa-cli.js");
const program = new Command();
registerQaCli(program);
expect(registerQaLabCli).toHaveBeenCalledWith(program);
});
});

View File

@@ -1,6 +0,0 @@
import type { Command } from "commander";
import { registerQaLabCli } from "../plugin-sdk/qa-lab.js";
export function registerQaCli(program: Command) {
registerQaLabCli(program);
}