mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
12 lines
454 B
TypeScript
12 lines
454 B
TypeScript
import React, { PropsWithChildren } from "react";
|
|
import { render, RenderOptions } from "@testing-library/react";
|
|
|
|
const Providers: React.FC<PropsWithChildren> = ({ children }) => {
|
|
// Add future providers here (Theme/Router/QueryClient/etc.)
|
|
return <>{children}</>;
|
|
};
|
|
|
|
export const renderWithProviders = (ui: React.ReactElement, options?: RenderOptions) =>
|
|
render(ui, { wrapper: Providers, ...options });
|
|
|
|
export * from "@testing-library/react";
|