import { jsx } from "react/jsx-runtime";
import { render } from "@testing-library/react";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
function AllProviders({ children }) {
  const queryClient = new QueryClient({
    defaultOptions: {
      queries: { retry: false },
      mutations: { retry: false }
    }
  });
  return /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children });
}
function renderWithProviders(ui, options) {
  return render(ui, { wrapper: AllProviders, ...options });
}
function renderWithTheme(ui, theme = "light") {
  return renderWithProviders(
    /* @__PURE__ */ jsx("div", { "data-theme": theme, children: ui })
  );
}
export {
  renderWithProviders,
  renderWithTheme
};
