react-css-theme-switcher
react-css-theme-switcher copied to clipboard
React Testing Warning: Insertion point 'styles-insertion-point' does not exist.
Hi, is anybody getting this warning when using jest to test a screen with it?
console.warn
Insertion point 'styles-insertion-point' does not exist. Be sure to add comment on head and that it matches the insertionPoint
at insertStyle (node_modules/react-css-theme-switcher/src/index.tsx:54:19)
at switcher (node_modules/react-css-theme-switcher/src/index.tsx:100:9)
at node_modules/react-css-theme-switcher/src/index.tsx:113:7
at invokePassiveEffectCreate (node_modules/react-dom/cjs/react-dom.development.js:23487:20)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:318:25)
at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:274:3)