Skip to content

Commit

Permalink
update name to Providers
Browse files Browse the repository at this point in the history
  • Loading branch information
jackiequach committed Sep 6, 2024
1 parent a81661e commit 34bddbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/testUtils/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ReactElement } from "react";
import { FeatureFlagProvider } from "~/src/context/FeatureFlagContext";
import { FeedbackProvider } from "~/src/context/FeedbackContext";

const AllTheProviders = ({ children }) => {
const Providers = ({ children }) => {
return (
<FeedbackProvider>
<FeatureFlagProvider>{children}</FeatureFlagProvider>
Expand All @@ -16,7 +16,7 @@ const customRender = (
ui: ReactElement,
options?: Omit<RenderOptions, "wrapper">
) => {
render(ui, { wrapper: AllTheProviders, ...options });
render(ui, { wrapper: Providers, ...options });
};

export * from "@testing-library/react";
Expand Down

0 comments on commit 34bddbd

Please sign in to comment.