import { render } from '@testing-library/react'; 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('Service Backup Manager', 'gi')).length > 0 ).toBeTruthy(); }); });