Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import { describe, expect, it } from "vitest";
import { validateConfigObject } from "./validation.js";
describe("logging.maxFileBytes config", () => {
it("accepts a positive maxFileBytes", () => {
const res = validateConfigObject({
logging: {
maxFileBytes: 1024,
},
});
expect(res.ok).toBe(true);
});
it("rejects non-positive maxFileBytes", () => {
const res = validateConfigObject({
logging: {
maxFileBytes: 0,
},
});
expect(res.ok).toBe(false);
if (!res.ok) {
expect(res.issues.some((issue) => issue.path === "logging.maxFileBytes")).toBe(true);
}
});
});
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland