import { jsx as _jsx } from "react/jsx-runtime";
import { render } from "@testing-library/react";
import { Fragment } from "react";
import { CoreProviders } from "../CoreProviders.js";
/**
 * @since 6.0.0
 */ export function rmdRender(ui, options = {}) {
    const { wrapper: Wrapper = Fragment, rmdConfig, ...renderOptions } = options;
    return render(ui, {
        ...renderOptions,
        wrapper: function ReactMDTestWrapper(props) {
            return /*#__PURE__*/ _jsx(CoreProviders, {
                ...rmdConfig,
                children: /*#__PURE__*/ _jsx(Wrapper, {
                    children: props.children
                })
            });
        }
    });
}

//# sourceMappingURL=render.js.map