-
Notifications
You must be signed in to change notification settings - Fork 455
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
[BUG] pathsToModuleNameMapper prefix wrong path resolve #1968
Comments
PR is welcome :) We plan to have a new release soon so if you can quickly make the Pr, it can be included in the release. |
I have this issue for the following tsconfig
pathsToModuleNameMapper resolves paths wrongly in jest config:
results in:
all of them are wrong, but the correct value is
the first one gives a relative value to the file that requested the module, but it must be relative to |
jest.config.js:
tsconfig.json:
pathsToModuleNameMapper compiles to:
but must be:
Solution:
you need to normalize the path first:
The text was updated successfully, but these errors were encountered: