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"')