From a0b22d6aa60baa24225214667bc9171f83484f25 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 26 Mar 2021 17:21:06 +0530 Subject: Initialize project using Create React App --- src/App.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/App.test.js (limited to 'src/App.test.js') diff --git a/src/App.test.js b/src/App.test.js new file mode 100644 index 0000000..1f03afe --- /dev/null +++ b/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