Closed jstamariz closed 3 years ago
Something is wrong with your setup, jest should provide JSDOM with a head element ready
Thanks for the fast response, but i think that's the best solution bcz when I handle it with the conditional access operator all my tests suites run properly, I'm working with react.
There are more problems you are not aware of with this. If you don't render to JSDOM, you can disable DOMRenderer
So I must be wrong, sorry for wasting your time bro, one last thing, how can I disable the DOMRenderer?
https://cssinjs.org/jss-api?v=v10.6.0#setup-jss-instance
Renderer: null
I am assuming you want to skip css rendering and only test components.
Thanks, have a nice day, greetings from Dominican Republic dude! 🇩🇴
Corresponding issue (if exists):
Changelog
I just added a condiitonal access operator becuase it was failing on my jest test suites at DomRenderer.js (Line: 249)