()
| 47 | } |
| 48 | |
| 49 | function Comp() { |
| 50 | const form = useAppForm(() => ({ |
| 51 | defaultValues: { |
| 52 | firstName: 'FirstName', |
| 53 | lastName: 'LastName', |
| 54 | } as Person, |
| 55 | })) |
| 56 | |
| 57 | return ( |
| 58 | <> |
| 59 | <form.AppField |
| 60 | name="firstName" |
| 61 | children={(field) => <field.TextField label="Testing" />} |
| 62 | /> |
| 63 | </> |
| 64 | ) |
| 65 | } |
| 66 | |
| 67 | const { getByLabelText } = render(() => <Comp />) |
| 68 | const input = getByLabelText('Testing') |
nothing calls this directly
no test coverage detected