22301069 | a457d80 | 2025-06-14 21:10:54 +0800 | [diff] [blame] | 1 | import { render, screen } from '@testing-library/react'; |
| 2 | import App from './App'; |
| 3 | |
| 4 | test('renders learn react link', () => { |
| 5 | render(<App />); |
| 6 | const linkElement = screen.getByText(/learn react/i); |
| 7 | expect(linkElement).toBeInTheDocument(); |
| 8 | }); |