-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
require.resolve is not a function when using jest.mock #692
require.resolve is not a function when using jest.mock #692
Comments
Ahh, yes good one. We need to build I will try to build this this week, regardless I'll keep this issue open for everyone to pickup in the meantime. We need to get all |
jest.spyOn is another one :) |
Not sure if it's related, but I'm seeing similar behavior with enzyme. I have a I didn't find anything regarding enzyme in the issues, but after reading that you have to build support for frameworks, maybe enzyme also needs to be added to the pile.
In the meantime, is there a way to disable tests in the sandbox? |
Did you tried to install https://www.npmjs.com/package/enzyme-adapter-react-16 and https://www.npmjs.com/package/enzyme |
@FDiskas yeah I tried that, but that's not a solution when jest has |
@the0neWhoKnocks so lets wait for #513 |
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made. |
This issue has been automatically closed because there wasn't any activity after the previous notice or the stale label wasn't removed. |
Trying to mock something with jest and got
require.resolve is not a function
https://codesandbox.io/s/003vnm1wrn?module=%2Fsrc%2Ftests%2FHello.test.tsx
The text was updated successfully, but these errors were encountered: