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.
💥 Regression Report
require.requireActual
no longer seems to usemoduleNameMapper
when resolving path. Seems to be caused by this change https://github.com/facebook/jest/pull/7404/files#diff-5b4dfdf819aec7c512e60abc8ed754b5R850Last working version
Worked up to version: 23.6.0
Stopped working in version: 24.0.0
To Reproduce
Add any
moduleNameMapper
config, EG:Create mapped module at destination path
require.requireActual
the source pathExpected behavior
Mapped module should be loaded without error
Link to repl or repo (highly encouraged)
Working repl in Jest 22.1.2
https://repl.it/repls/UnusedBoldNlp
In Jest 24.1.0 this errors:
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: