import React from "react";
import { Provider } from "react-redux";
import { createStore } from "redux";
// eslint-disable-next-line import/no-extraneous-dependencies
import { render } from "@testing-library/react";
export function storeProviderMock(reducerProvider) {
    return (ui, state) => {
        const store = createStore(reducerProvider(state));
        return {
            ...render(React.createElement(Provider, { store: store }, ui)),
            store,
        };
    };
}
//# sourceMappingURL=store-provider-mock.js.map