Testing with Jest #3290
Replies: 6 comments 5 replies
This comment has been hidden.
This comment has been hidden.
-
+1 with any element. Example below using a bare bones typescript app but just adding the themeProvider
Throws the same error. I'm assuming that this is something to do with the babel config |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
I solved this issue by adding this line
hope It will work for you @tulio-mcsantos |
Beta Was this translation helpful? Give feedback.
-
Worked like a charm!! Thanks a lot @mustafakameldev |
Beta Was this translation helpful? Give feedback.
-
if you import from
in jest.config.js
|
Beta Was this translation helpful? Give feedback.
-
I tried to test a component that has Image, the test failed with an error
here is the message:
Beta Was this translation helpful? Give feedback.
All reactions