import { jsx } from "react/jsx-runtime";
import { render } from "@testing-library/react";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { I18nProvider } from "@open-mercato/shared/lib/i18n/context";
function renderWithProviders(ui, options) {
  const { locale = "en", dict = {}, queryClient = new QueryClient(), ...rest } = options ?? {};
  function Wrapper({ children }) {
    return /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx(I18nProvider, { locale, dict, children }) });
  }
  return render(ui, { wrapper: Wrapper, ...rest });
}
export {
  renderWithProviders
};
//# sourceMappingURL=renderWithProviders.js.map
