Merged via squash. Prepared head SHA: 27241bd0898d9ed1f13a5aaf3113be345d3002be Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
30 lines
867 B
TypeScript
30 lines
867 B
TypeScript
import { Command } from "commander";
|
|
import { describe, expect, it } from "vitest";
|
|
import { matrixQaCliRegistration } from "./cli.js";
|
|
|
|
describe("matrix qa cli registration", () => {
|
|
it("keeps disposable Matrix lane flags focused", () => {
|
|
const qa = new Command();
|
|
|
|
matrixQaCliRegistration.register(qa);
|
|
|
|
const matrix = qa.commands.find((command) => command.name() === "matrix");
|
|
const optionNames = matrix?.options.map((option) => option.long) ?? [];
|
|
|
|
expect(optionNames).toEqual(
|
|
expect.arrayContaining([
|
|
"--repo-root",
|
|
"--output-dir",
|
|
"--provider-mode",
|
|
"--model",
|
|
"--alt-model",
|
|
"--scenario",
|
|
"--fast",
|
|
"--sut-account",
|
|
]),
|
|
);
|
|
expect(optionNames).not.toContain("--credential-source");
|
|
expect(optionNames).not.toContain("--credential-role");
|
|
});
|
|
});
|