Skip to content

Instantly share code, notes, and snippets.

@stoneboyindc stoneboyindc/App.test.js
Last active Jan 14, 2020

What would you like to do?
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.