summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/opencode/test/util/effect-zod.test.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/opencode/test/util/effect-zod.test.ts b/packages/opencode/test/util/effect-zod.test.ts
index 9bf3de3f8..003945b43 100644
--- a/packages/opencode/test/util/effect-zod.test.ts
+++ b/packages/opencode/test/util/effect-zod.test.ts
@@ -848,12 +848,11 @@ describe("util.effect-zod", () => {
test("identifier + description propagate through the preprocess wrapper", () => {
const Inner = Schema.Struct({
x: Schema.optional(Schema.String),
+ }).annotate({
+ identifier: "WithPreproc",
+ description: "A schema with preprocess",
+ [ZodPreprocess]: (v: unknown) => v,
})
- .annotate({
- identifier: "WithPreproc",
- description: "A schema with preprocess",
- [ZodPreprocess]: (v: unknown) => v,
- })
const schema = zod(Inner)
expect(schema.meta()?.ref).toBe("WithPreproc")
expect(schema.meta()?.description).toBe("A schema with preprocess")