App.test.js 246 B

12345678
  1. import { render, screen } from '@testing-library/react';
  2. import App from './App';
  3. test('renders learn react link', () => {
  4. render(<App />);
  5. const linkElement = screen.getByText(/learn react/i);
  6. expect(linkElement).toBeInTheDocument();
  7. });