Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
micaelomota opened this issue Apr 15, 2022 · 0 comments

Comments

@micaelomota
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant