Replies: 2 comments
-
| facing same. have you found any work around with |
Beta Was this translation helpful? Give feedback.
0 replies
-
| After lots and lots of research I found that there is no direct configuration/solution of this issue with Jest + CRA. There are some transform plugins are available, but I don't know why CRA jest configuration is not adhering that. Maybe it's part of another R&D for future. Those who wants quick solution please follow below approach as of now. Don't use import.meta directly. Create worker factory module: than use it in your actual prod component and from testing side mock it with jest like below: Hope it helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Iam using import.meta syntax for calling a webworker url. This is causing issues with Jest unit tests. How to fix this issue any idea.?
Beta Was this translation helpful? Give feedback.
All reactions