Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @testing-library to the default templates #7881

Merged
merged 9 commits into from
Oct 29, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update App.test.js
  • Loading branch information
kentcdodds authored Oct 29, 2019
commit 1e4aa4d79acd61d087c4898ffd27b7497ed758d0
4 changes: 2 additions & 2 deletions packages/cra-template/template/src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import App from './App';

test('renders welcome heading', () => {
const { getByRole } = render(<App />);
const linkElement = getByRole('link');
expect(linkElement).toHaveTextContent(/learn react/i);
const headingElement = getByRole('heading');
expect(headingElement).toHaveTextContent(/welcome/i);
});