You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got everything setup according to your docs however whenever I attempt to shallow render a very simple class based component I get the following error:
I still get this error using jest 23.6.0 , enzyme 3.8.0 , and enzyme-preact-adapter 0.2.0 . One not-great workaround is to import React from 'preact-compat'; instead of from 'preact' in test files.
I've got everything setup according to your docs however whenever I attempt to shallow render a very simple class based component I get the following error:
Invariant Violation: ReactShallowRenderer render(): Invalid component element.
For clarity I'm using:
I've put together a repo illustrating this here:
https://github.com/jhdevuk/typescript-preact-enyme
@awinogradov @sanpoChew @aweary
Thanks
The text was updated successfully, but these errors were encountered: