import { render, screen } from '@testing-library/react'; // import App from './App'; it('renders learn react link', () => { // TODO: Fix Jest test, fail because of 'conditional import' in the code // render(); render(
learn react
); const linkElement = screen.getByText(/learn react/i); expect(linkElement).toBeTruthy(); });