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