-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Jest resolver fails intermittently when npm package main entry is set to "./" #5967
Comments
Note that it appears to be possible to work around the issue by creating a virtual mock to skip resolution for the module entirely: jest.mock('co-request', () => jest.fn(), { virtual: true }); |
webpack has this same bug and it's very frustrating; it'd be nice if jest were to fix it. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The issue described in #5088 has been fixed by #5344 for main entries set to ".", but it looks like this issue can still occur when the main entry is set to "./".
PR incoming for this issue.- #5968The text was updated successfully, but these errors were encountered: