Skip to content

Instantly share code, notes, and snippets.

@stoneboyindc
Last active January 14, 2020 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stoneboyindc/4cff7356bd577cfa6c5e2a611da9ee31 to your computer and use it in GitHub Desktop.
Save stoneboyindc/4cff7356bd577cfa6c5e2a611da9ee31 to your computer and use it in GitHub Desktop.
import React from 'react';
import { render } from '@testing-library/react';
import App from './App';
test('renders learn react link', () => {
const { getByText } = render(<App />);
const linkElement = getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment