Skip to content

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

@micaelomota

Description

@micaelomota

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions