Replies: 1 comment
-
If you mock the subtle crypto module, as you can see has been done in the tests for this library, this error would go away. However, testing the authentication part of your application is not trivial, so you should consider if it's worth your time. You could also setup the localStorage so that the library detects the user as already logged in. Sorry for the slow response. Summer holidays 😎✌️ |
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
-
Hi all I have to write unit tests for my application using your module. I am using Jest and React Testing Library. While the test passes the warnings below do not make for nice viewing from the manager.
Main is where there is the Authprovider wrapping the APP like this:
When I render Main in the test file like this:
I get the following error when running the test:
Beta Was this translation helpful? Give feedback.
All reactions