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

React Testing Warning: Insertion point 'styles-insertion-point' does not exist.

Open micaelomota opened this issue 2 years ago • 0 comments

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)

Screen Shot 2022-04-15 at 12 28 21 PM

micaelomota avatar Apr 15 '22 16:04 micaelomota