Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import { describe, expect, it } from "vitest";
import { __test__ } from "./logger.js";
describe("shouldSkipMutatingLoggingConfigRead", () => {
it("matches config schema and validate invocations", () => {
expect(
__test__.shouldSkipMutatingLoggingConfigRead(["node", "openclaw", "config", "schema"]),
).toBe(true);
expect(
__test__.shouldSkipMutatingLoggingConfigRead(["node", "openclaw", "config", "validate"]),
).toBe(true);
});
it("handles root flags before config validate", () => {
expect(
__test__.shouldSkipMutatingLoggingConfigRead([
"node",
"openclaw",
"--profile",
"work",
"--no-color",
"config",
"validate",
"--json",
]),
).toBe(true);
});
it("does not match other commands", () => {
expect(
__test__.shouldSkipMutatingLoggingConfigRead(["node", "openclaw", "config", "get", "foo"]),
).toBe(false);
expect(__test__.shouldSkipMutatingLoggingConfigRead(["node", "openclaw", "status"])).toBe(
false,
);
});
});
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland