import React from "react"; import { fireEvent, render, waitFor } from "@testing-library/react-native"; import { FormProvider, useForm } from "react-hook-form"; import { Button } from "react-native"; import { FormField } from "."; import { InputText } from "../InputText"; const mockOnSubmit = jest.fn(); const inputAccessibilityLabel = "textInput"; const saveButtonText = "Save Me"; describe("when a component is wrapped in a FormField within a Form", () => { function SimpleFormWithProvider({ children, }: { readonly children: React.ReactNode; }) { const formMethods = useForm(); return ( {children}