-
Notifications
You must be signed in to change notification settings - Fork 14
Can't find TextEncoder
in tests after 2.2.2 release
#60
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
Comments
Mhh TextEncoder should be a global and doesn't need an import. On the first glance it looks like an issue outside of moderndash. It only appeared now in v2.2.2 because I moved the TextEncoder to the outer scope. Before it was generated in the @karol-f can you give me a reproducible repo on stackblitz for example? |
A google search showed me this, seems to be related: inrupt/solid-client-authn-js#1676 Seems like a jest issue. This probably fixes it for you: https://stackoverflow.com/a/68468204 |
Thanks for the hints, I will try to resolve it myself with e.g. |
Importing I just wonder if we really need
Obviously, this second way will fail if you actually will use some method with |
Sounds good 👍 I might change the function to only create the TextEncoder object when actually needed. |
I will just add that |
I can confirm that it's working now :) Thank you! |
Can't find
TextEncoder
in Jest tests after 2.2.2 release:What is strange it want to get it from
src
folder:I can see only
src
comment in the dist source code:The text was updated successfully, but these errors were encountered: