|
- import * as React from 'react';
- import {
- render,
- screen
- } from '@testing-library/react';
- import '@testing-library/jest-dom';
- import {
- TextInput
- } from '.';
-
- describe('TextInput', () => {
- it('should render a textbox', () => {
- render(<TextInput />);
- const textbox = screen.getByRole('textbox');
- expect(textbox).toBeInTheDocument();
- });
- });
|