import { beforeEach, describe, expect, it, vi } from "vitest"; import type { OpenClawConfig } from "../../config/config.js"; import { handleBashCommand } from "./commands-bash.js"; import type { HandleCommandsParams } from "./commands-types.js";
it("routes !poll and !stop through the bash chat handler", async () => { for (const aliasCommand of ["!poll", "!stop"]) { const result = await handleBashCommand(buildBashParams(aliasCommand), true);
expect(result?.shouldContinue).toBe(false);
expect(result?.reply?.text).toContain("No active bash job");
}
expect(handleBashChatCommandMock).toHaveBeenCalledTimes(2);
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.