import { jsx } from "react/jsx-runtime";
import { render } from "@testing-library/react";
import { Provider } from "react-redux";
import { createAppStore } from "../../data/store.js";
import { browserHistory } from "../history.js";
const renderWithRedux = (ui, {
  initialState,
  store = createAppStore(initialState, browserHistory)
} = {}) => ({
  ...render(/* @__PURE__ */ jsx(Provider, { store, children: ui })),
  // adding `store` to the returned utilities to allow us
  // to reference it in our tests (just try to avoid using
  // this to test implementation details).
  store
});
export {
  renderWithRedux
};
