import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__ from "@tachybase/test/client";
import * as __WEBPACK_EXTERNAL_MODULE__CurrentUser_mjs__ from "../CurrentUser.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__CurrentUserSettingsMenuProvider_mjs__ from "../CurrentUserSettingsMenuProvider.mjs";
const AppContextProvider = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {});
describe.skip('CurrentUserSettingsMenuProvider', ()=>{
    const wrapper = (param)=>{
        let { children } = param;
        return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(AppContextProvider, {
            children: [
                /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__CurrentUser_mjs__.SettingsMenu, {}),
                children
            ]
        });
    };
    const TestComponent = ()=>{
        const { getMenuItems } = (0, __WEBPACK_EXTERNAL_MODULE__CurrentUserSettingsMenuProvider_mjs__.useCurrentUserSettingsMenu)();
        getMenuItems();
        return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
            children: "Test"
        });
    };
    it('should throw error when CurrentUserSettingsMenuProvider is not provided', ()=>{
        expect(()=>{
            (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.render)(/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(TestComponent, {}));
        }).toThrowErrorMatchingInlineSnapshot('"CurrentUser: You should use `CurrentUserSettingsMenuProvider` in the root of your app."');
    });
    it('should not throw error when providing context', ()=>{
        expect(()=>{
            (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.render)(/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(TestComponent, {}), {
                wrapper
            });
        }).not.toThrow();
    });
});
