chore(confidence-engine): upgrade to zod 4

This commit is contained in:
2026-09-05 18:21:15 +01:00
parent 46b9bd8b03
commit 8c5b47bcf5
5 changed files with 15 additions and 8 deletions
+2 -2
View File
@@ -254,10 +254,10 @@ describe("analyseScenario compatibility", () => {
expect(result.validationIssues).toContainEqual(expect.objectContaining({
path: ["reconstruction", "observedStates", 0, "description"],
code: "invalid_type",
message: "Required",
expected: "string",
}));
expect(result.providerApiPath).toBe("/api/chat");
expect(result.errors).toContain("reconstruction: Required");
expect(result.errors).toContainEqual(expect.stringMatching(/^reconstruction:/));
});
it("succeeds when reported_claim is the only evidenceType mismatch", async () => {