diff --git a/src/components/forms/TextInput/text-input.test.tsx b/src/components/forms/TextInput/text-input.test.tsx deleted file mode 100644 index 1ae3603..0000000 --- a/src/components/forms/TextInput/text-input.test.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { renderWithForm, userEvent, render, act } from '../../../test'; -import { Field } from '../Form'; - -import { TextInput } from './TextInput'; - -jest.mock('../../../_internal/hooks/use-warn'); - -describe('', () => { - it('should work without form', async () => { - const { getByRole } = render(); - - const input = getByRole('textbox'); - - await act(async () => await userEvent.type(input, 'Hello, World!')); - - expect(input).toHaveValue('Hello, World!'); - }); - - it('should interop with legacy ', async () => { - const { getByRole, formInstance } = renderWithForm( - - - , - ); - - const input = getByRole('textbox'); - - await act(async () => await userEvent.type(input, 'Hello, World!')); - - expect(input).toHaveValue('Hello, World!'); - expect(formInstance.getFieldValue('test')).toEqual('Hello, World!'); - }); - - it('should interop with
', async () => { - const { getByRole, formInstance } = renderWithForm( - , - ); - - const input = getByRole('textbox'); - - await act(async () => await userEvent.type(input, 'Hello, World!')); - - expect(input).toHaveValue('Hello, World!'); - expect(formInstance.getFieldValue('test')).toEqual('Hello, World!'); - }); -});