test(cli): consolidate duplicate setup journey

This commit is contained in:
morluto 2026-09-29 18:16:08 +08:00
parent d6e545cc48
commit 9bd7e2cb45
1 changed files with 5 additions and 21 deletions

View File

@ -107,6 +107,11 @@ describe("interactive setup journey", () => {
expect(result.output).not.toContain(
"REA reverse-engineering skill (skill)",
);
expect(result.output).toContain("INSTALL REA reverse-engineering skill");
expect(result.output).not.toContain("CREATE Codex");
expect(result.output).not.toContain(
"INSTALL Hopper deep-analysis provider",
);
expect(result.decision).toEqual({
approved: true,
selectedActionIds: ["install_skill"],
@ -191,27 +196,6 @@ describe("interactive setup selection and confirmation", () => {
});
});
it("repairs an aligned agent integration through the bundled option", async () => {
const result = await runJourney(
[step("What should REA set up?", "\r"), step("Apply this change?", "\r")],
false,
actions.filter(({ kind }) => kind !== "configure_client"),
);
expect(result.output).toContain("INSTALL REA reverse-engineering skill");
expect(result.output).toContain(
"Agent integration (MCP + guided workflow)",
);
expect(result.output).not.toContain("CREATE Codex");
expect(result.output).not.toContain(
"INSTALL Hopper deep-analysis provider",
);
expect(result.decision).toEqual({
approved: true,
selectedActionIds: ["install_skill"],
});
});
it("defaults accessible agent integration to Yes and others to No", async () => {
const result = await runJourney(
[