summaryrefslogtreecommitdiff
path: root/src/App.test.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-13 21:40:29 +0300
committereug-vs <eug-vs@keemail.me>2021-03-13 21:40:29 +0300
commit58c47725b9f2c171065b9e35cdbc0e4525ec7255 (patch)
treee29351810c0e35743f1fdbcc4f74f6352dceecaa /src/App.test.tsx
downloadcommercel-ui-58c47725b9f2c171065b9e35cdbc0e4525ec7255.tar.gz
Initialize project using Create React App
Diffstat (limited to 'src/App.test.tsx')
-rw-r--r--src/App.test.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/App.test.tsx b/src/App.test.tsx
new file mode 100644
index 0000000..2a68616
--- /dev/null
+++ b/src/App.test.tsx
@@ -0,0 +1,9 @@
+import React from 'react';
+import { render, screen } from '@testing-library/react';
+import App from './App';
+
+test('renders learn react link', () => {
+ render(<App />);
+ const linkElement = screen.getByText(/learn react/i);
+ expect(linkElement).toBeInTheDocument();
+});