import { describe, expect, it } from "vitest"; import { IrcConfigSchema } from "./config-schema.js";
function expectValidConfig(result: ReturnType<typeof IrcConfigSchema.safeParse>) {
expect(result.success).toBe(true); if (!result.success) { thrownew Error("expected config to be valid");
} return result.data;
}
function expectInvalidConfig(result: ReturnType<typeof IrcConfigSchema.safeParse>) {
expect(result.success).toBe(false); if (result.success) { thrownew Error("expected config to be invalid");
} return result.error.issues;
}
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.