-
Notifications
You must be signed in to change notification settings - Fork 0
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
docs: clarify mocking differences with jest #19
base: main
Are you sure you want to change the base?
Conversation
@marcoskichel you ran into mocking incompatibility issues recently, can you see if this guide suffices for you to get your tests working? |
It helps, but if I am honest I don't think it suffices 😢 If we allow users to implement tests as if using Is there any technical reason why we can't or don't want to handle hosting like jest does? |
When using jest ESM, it behaves the same as exodus-test and also requires to import dynamically after the mock has been defined. Hoisting happens only when running jest as CJS (the default) jest docs for reference |
Oh, really? I wasn't aware 😅 , nevermind me then. |
Thank you, you probably saved me quite some time 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK - worked for me
Closes #17