import { ComponentProps, createRef } from 'react'; import { fireEvent, render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import TextArea from './TextArea'; import expectToThrow from './utils/testing/expectToThrow'; const LABEL = 'textfieldLabel'; const renderTextArea = ({ // Cmp Props id = 'test', onChange = jest.fn(), onFocus = jest.fn(), onBlur = jest.fn(), maxLength, }: { id?: ComponentProps['id']; onChange?: ComponentProps['onChange']; onFocus?: ComponentProps['onFocus']; onBlur?: ComponentProps['onBlur']; maxLength?: ComponentProps['maxLength']; }) => render(