From 5ddc6043f823f6a95bddc268ef3ae21c2284348b Mon Sep 17 00:00:00 2001 From: Sachin Raja Date: Fri, 7 Apr 2023 09:34:37 -0700 Subject: [PATCH] fix readme config --- README.md | 2 +- test/modifiers.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0944c82..96b81dd 100644 --- a/README.md +++ b/README.md @@ -358,7 +358,7 @@ result: Option 2 - resolve enums. This is the same as before, but you just need to pass an option: ```ts -const TreeTSType = zodToTs(TreeSchema, { resolveNativeEnums: true }) +const TreeTSType = zodToTs(TreeSchema, undefined, { resolveNativeEnums: true }) ``` result: diff --git a/test/modifiers.test.ts b/test/modifiers.test.ts index d13e6f7..aa711fe 100644 --- a/test/modifiers.test.ts +++ b/test/modifiers.test.ts @@ -20,7 +20,7 @@ const ObjectWithOptionals = z.object({ ]).optional(), }) -describe.only('z.optional()', () => { +describe('z.optional()', () => { it('outputs correct typescript', () => { const { node } = zodToTs(OptionalStringSchema) expect(printNodeTest(node)).toMatchInlineSnapshot('"string | undefined"')