Larbi Gharib | e9af973 | 2021-03-31 15:08:01 +0100 | [diff] [blame] | 1 | import { render } from '@testing-library/react'; |
2 | import App from './App'; | ||||
3 | |||||
4 | test('renders learn react link', () => { | ||||
5 | const { getByText } = render(<App />); | ||||
6 | const linkElement = getByText(/learn react/i); | ||||
7 | expect(linkElement).toBeInTheDocument(); | ||||
8 | }); |