From ecff3ce21dc1fb68cbe62533a1798bc7b4c061ba Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 25 Sep 2022 16:16:32 +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