aboutsummaryrefslogtreecommitdiff
path: root/src/App.test.jsx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/App.test.jsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/App.test.jsx b/src/App.test.jsx
new file mode 100644
index 0000000..e4874f8
--- /dev/null
+++ b/src/App.test.jsx
@@ -0,0 +1,15 @@
+import React from "react";
+import { render } from "@testing-library/react";
+import { Provider } from "react-redux";
+import { store } from "./app/store";
+import App from "./App";
+
+test("renders learn react link", () => {
+ const { getByText } = render(
+ <Provider store={store}>
+ <App />
+ </Provider>
+ );
+
+ expect(getByText(/learn/i)).toBeInTheDocument();
+});