react-css-theme-switcher icon indicating copy to clipboard operation
react-css-theme-switcher copied to clipboard

To use `useThemeSwitcher`, component must be within a ThemeSwitcherProvider Error

Open dukesx opened this issue 3 years ago • 0 comments

I am using Next JS, and during dev mode, it doesnt throw this error but as soon as i test it with Jest using JSDOM, it throws me this error, although my provider is in _app.tsx , which should wrap the entire app under the provider but seems that this is not the case.

any help ?

dukesx avatar Aug 18 '21 14:08 dukesx