App.test.js 280 Bytes
Newer Older
Sangjune Bae's avatar
Sangjune Bae committed
1
2
import React from 'react';
import { render } from '@testing-library/react';
Sangjune Bae's avatar
Sangjune Bae committed
3
4
5
import App from './App';

test('renders learn react link', () => {
Sangjune Bae's avatar
Sangjune Bae committed
6
7
  const { getByText } = render(<App />);
  const linkElement = getByText(/learn react/i);
Sangjune Bae's avatar
Sangjune Bae committed
8
9
  expect(linkElement).toBeInTheDocument();
});