From e2d60fa72e93a6598bb89300fb94e18758570f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=A9=98?= Date: Mon, 25 May 2026 11:29:05 +0000 Subject: [PATCH] fix(test): use valid JSON Schema in workflow-resolution test fixture The test used a fake CasRef string as frontmatter, which fails putSchema validation when loading from YAML files. Replace with a proper JSON Schema object. Fixes pre-existing failures in workflow-resolution, cas-exit-code, and thread-step-count tests. --- .../src/__tests__/workflow-resolution.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/cli-workflow/src/__tests__/workflow-resolution.test.ts b/packages/cli-workflow/src/__tests__/workflow-resolution.test.ts index 8223cb7..011e347 100644 --- a/packages/cli-workflow/src/__tests__/workflow-resolution.test.ts +++ b/packages/cli-workflow/src/__tests__/workflow-resolution.test.ts @@ -31,7 +31,13 @@ function makeMinimalPayload(name: string, description: string): WorkflowPayload capabilities: [], procedure: "", output: "", - frontmatter: { type: "0000000000000" } as unknown as CasRef, + frontmatter: { + type: "object", + properties: { + $status: { type: "string" }, + }, + required: ["$status"], + } as unknown as CasRef, }, }, graph: {