From ac123f23719e3212ec1a6a16e0b1f915d1c175b4 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 5 Sep 2021 15:34:35 -0700 Subject: create-react-app Former-commit-id: 33647ef65cbac1c89c16a8b81dfa7de0fad5af3e --- examples/hello-create-react-app/src/App.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/hello-create-react-app/src/App.test.js (limited to 'examples/hello-create-react-app/src/App.test.js') diff --git a/examples/hello-create-react-app/src/App.test.js b/examples/hello-create-react-app/src/App.test.js new file mode 100644 index 000000000..1f03afeec --- /dev/null +++ b/examples/hello-create-react-app/src/App.test.js @@ -0,0 +1,8 @@ +import { render, screen } from '@testing-library/react'; +import App from './App'; + +test('renders learn react link', () => { + render(); + const linkElement = screen.getByText(/learn react/i); + expect(linkElement).toBeInTheDocument(); +}); -- cgit v1.2.3