diff --git a/src/cli/program/register.subclis-core.ts b/src/cli/program/register.subclis-core.ts index 15f86cf59f9..8d173f17e85 100644 --- a/src/cli/program/register.subclis-core.ts +++ b/src/cli/program/register.subclis-core.ts @@ -131,8 +131,8 @@ const entrySpecs: readonly CommandGroupDescriptorSpec[] = [ }, { commandNames: ["qa"], - loadModule: () => import("../qa-cli.js"), - exportName: "registerQaCli", + loadModule: () => import("../../plugin-sdk/qa-lab.js"), + exportName: "registerQaLabCli", }, { commandNames: ["hooks"], diff --git a/src/cli/qa-cli.test.ts b/src/cli/qa-cli.test.ts deleted file mode 100644 index a77565595fd..00000000000 --- a/src/cli/qa-cli.test.ts +++ /dev/null @@ -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); - }); -}); diff --git a/src/cli/qa-cli.ts b/src/cli/qa-cli.ts deleted file mode 100644 index c139f7f3576..00000000000 --- a/src/cli/qa-cli.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { Command } from "commander"; -import { registerQaLabCli } from "../plugin-sdk/qa-lab.js"; - -export function registerQaCli(program: Command) { - registerQaLabCli(program); -}