We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I have the below configuration for the Jest test framework:
module.exports = Object.assign({}, jestBaseConfig, { moduleNameMapper: { moduleB: '<rootDir>/node_modules/moduleB/index.js', }, });
I'm trying to test one module (ModuleA) that requires this one (ModuleB). ModuleA |__ requires --> ModuleB
When I use require for ModuleA, ModuleB is resolved correctly but, if I try to rewire ModuleA, ModuleB is not found. In particular, the message is:
require
rewire
Cannot find module 'ModuleB'
rewire: "version": "4.0.1" jest: "version": "24.9.0"
Hoping that the explanation is pretty clear. Thanks!
The text was updated successfully, but these errors were encountered:
Same issue here, with versions: rewire: "5.0.0" jest: "26.3.0"
Sorry, something went wrong.
I also get the same issue
No branches or pull requests
Hi,
I have the below configuration for the Jest test framework:
I'm trying to test one module (ModuleA) that requires this one (ModuleB).
ModuleA
|__ requires --> ModuleB
When I use
require
for ModuleA, ModuleB is resolved correctly but, if I try torewire
ModuleA, ModuleB is not found. In particular, the message is:Cannot find module 'ModuleB'
rewire: "version": "4.0.1"
jest: "version": "24.9.0"
Hoping that the explanation is pretty clear.
Thanks!
The text was updated successfully, but these errors were encountered: