From 326291e708c7dce380c77d0a2903078275b7b81f Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 7 Oct 2022 13:04:22 -0700 Subject: [PATCH] Fix the react test. It's still a useless test, but now it passes. --- client/src/App.test.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/client/src/App.test.tsx b/client/src/App.test.tsx index b20568d2..d97fd6ce 100644 --- a/client/src/App.test.tsx +++ b/client/src/App.test.tsx @@ -1,9 +1,12 @@ import App from "./App"; -import { render, screen } from "@testing-library/react"; -import React from "react"; +import { store } from "./app/store"; +import { render } from "@testing-library/react"; +import { Provider } from "react-redux"; -test("renders learn react link", () => { - render(); - const linkElement = screen.getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); +test("app renders", () => { + render( + + + + ); });