From e34c6bc4e73c3668995a10f7c12064864d00add6 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 15 Mar 2025 17:51:25 -0700 Subject: [PATCH] fix gui test --- gui/src/util/test/render.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gui/src/util/test/render.tsx b/gui/src/util/test/render.tsx index 478f766c6..95f1cbd2d 100644 --- a/gui/src/util/test/render.tsx +++ b/gui/src/util/test/render.tsx @@ -1,9 +1,10 @@ -import { PropsWithChildren } from "react"; -import { render } from "@testing-library/react"; import type { RenderOptions } from "@testing-library/react"; -import { Provider } from "react-redux"; +import { render } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; +import { PropsWithChildren } from "react"; +import { Provider } from "react-redux"; import { MemoryRouter, RouterProps } from "react-router-dom"; +import { AuthProvider } from "../../context/Auth"; import { setupStore } from "../../redux/store"; // As a basic setup, import your same slice reducers @@ -29,7 +30,9 @@ export function renderWithProviders( const Wrapper = ({ children }: PropsWithChildren) => ( - {children} + + {children} + );