import { render } from '@testing-library/react'; import { BrowserRouter } from 'react-router-dom'; import App from './app'; describe('App', () => { it('should render successfully', () => { const { baseElement } = render( ); expect(baseElement).toBeTruthy(); }); it('should have a greeting as the title', () => { const { getAllByText } = render( ); expect( getAllByText(new RegExp('Welcome voice-demo-ui', 'gi')).length > 0 ).toBeTruthy(); }); });