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 haven't use Meteor in a while, but I would assume that Jest will be unable to use meteor packages and you would encounter the exact same issues with any meteor dependency that you import. I would suggest mocking them to avoid this problem, example: https://stackoverflow.com/questions/39548799/meteor-react-jest-testing
It's interesting that you do not encounter this error for the accounts-base module, is this something that you are already mocking?
Mocking is of course not ideal as you would like to have your test give you as much confidence as you can that the logic works, but I'm not sure if there is any new way to make that work unfortunately.
I am using the RememberMe component in my Signin form (a React functional component in Meteor)
When I try running tests with Jest I get the following error:
Cannot find module 'meteor/tprzytula:remember-me' from 'imports/ui/components/signin/SigninForm.js'
Here is my test code using Jest and Enzyme
Is there a solution/workaround for this problem?
The text was updated successfully, but these errors were encountered: