import { describe, expect, it } from "vitest"; import type { OpenClawConfig } from "../config/config.js"; import { setPluginEnabledInConfig } from "./plugins-config.js";
describe("setPluginEnabledInConfig", () => {
it("sets enabled flag for an existing plugin entry", () => { const config = {
plugins: {
entries: {
alpha: { enabled: false, custom: "x" },
},
},
} as OpenClawConfig;
const next = setPluginEnabledInConfig(config, "alpha", true);
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.