From d0cfe68cd98360d6a8ada05dadbabac1c10dc13e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Wed, 21 Dec 2022 14:05:06 +0100 Subject: [PATCH] fix: React generator --- jest.config.js | 1 + templates/react/components/Field.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jest.config.js b/jest.config.js index 163ab089..471d4327 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,3 +1,4 @@ export default { runner: "jest-light-runner", + testPathIgnorePatterns: ["/node_modules/", "/tmp/"], }; diff --git a/templates/react/components/Field.tsx b/templates/react/components/Field.tsx index f5eb731b..7004998f 100644 --- a/templates/react/components/Field.tsx +++ b/templates/react/components/Field.tsx @@ -1,8 +1,8 @@ -import { DeepMap, FieldError, FieldValues, Path, UseFormRegister } from "react-hook-form"; +import { DeepMap, FieldError, FieldValues, Path, UnPackAsyncDefaultValues, UseFormRegister } from "react-hook-form"; interface FieldProps { register: UseFormRegister; - name: Path; + name: Path>; placeholder: string; type: string; step?: string;