mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-29 18:12:52 +00:00
test(cli): reduce update/program suite overhead
This commit is contained in:
@@ -4,7 +4,6 @@ import {
|
||||
ensureConfigReady,
|
||||
installBaseProgramMocks,
|
||||
installSmokeProgramMocks,
|
||||
messageCommand,
|
||||
onboardCommand,
|
||||
runTui,
|
||||
runtime,
|
||||
@@ -42,16 +41,10 @@ describe("cli program (smoke)", () => {
|
||||
ensureConfigReady.mockResolvedValue(undefined);
|
||||
});
|
||||
|
||||
it("runs message command with required options", async () => {
|
||||
await expect(
|
||||
runProgram(["message", "send", "--target", "+1", "--message", "hi"]),
|
||||
).rejects.toThrow("exit");
|
||||
expect(messageCommand).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("registers memory + status commands", () => {
|
||||
const program = createProgram();
|
||||
const names = program.commands.map((command) => command.name());
|
||||
expect(names).toContain("message");
|
||||
expect(names).toContain("memory");
|
||||
expect(names).toContain("status");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user