asenka0301/frontend-bootcamp-project-12

View on GitHub
frontend/src/App.test.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import { render, screen } from '@testing-library/react';
import App from './App';

// eslint-disable-next-line no-undef
test('renders learn react link', () => {
  // eslint-disable-next-line react/react-in-jsx-scope
  render(<App />);
  const linkElement = screen.getByText(/learn react/i);
  // eslint-disable-next-line no-undef
  expect(linkElement).toBeInTheDocument();
});