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
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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🚀 Feature Proposal
node v8.9.0 added the options argument to require.resolve.
https://nodejs.org/api/modules.html#modules_require_resolve_request_options
jest does not support the options argument
It would also be good to support require.resolve.paths which I understand from @SimenB is not supported
https://nodejs.org/api/modules.html#modules_require_resolve_paths_request
Motivation
Jest should stay current with node's implementation for overridden methods.
Example
**Link to repl or repo **
https://repl.it/@mdecorte/LightsalmonNutritiousNaturaldocs
Code Snippet
Below is a code snipped from the above rep that works in node but not jest
To Reproduce
compare output from repo between node foo-test.js vs jest foo-test.js
Expected behavior
Actual behavior
Misc
$ jest --version
v22.4.3
a workaround is to add to
jest.config.js
This was originally Defect #6201
The text was updated successfully, but these errors were encountered: