import { createRef } from 'react'; import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { TextArea } from '../TextArea'; import { ValidatedOptions } from '../../../helpers/constants'; import formControlStyles from '@patternfly/react-styles/css/components/FormControl/form-control'; const props = { onChange: jest.fn(), value: 'test textarea' }; test('Textarea input passes value and event to onChange handler', async () => { const user = userEvent.setup(); render(