import { describe, expect, it } from "vitest"; import { formatAcpRuntimeErrorText } from "./error-text.js"; import { AcpRuntimeError } from "./errors.js";
describe("formatAcpRuntimeErrorText", () => {
it("adds actionable next steps for known ACP runtime error codes", () => { const text = formatAcpRuntimeErrorText( new AcpRuntimeError("ACP_BACKEND_MISSING", "backend missing"),
);
expect(text).toContain("ACP error (ACP_BACKEND_MISSING): backend missing");
expect(text).toContain("next:");
});
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.