-
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
Breaking changes: pathsToModuleNameMapper resolve path mapping with path.join #1982
Comments
Also repro: $ git clone https://github.com/Angular-RU/angular-ru-sdk.git
$ cd angular-ru-sdk
$ yarn install
$ cd packages/jest-utils/
$ # edit package.json (update to ts-jest 26.4.0)
$ yarn build:lib
$ yarn test # see debug Expected
|
hi, thank you for your report. I will look into it. Apparently it is a regression |
Hmm do you think we can have a logic that, if path starts with It looks to me like the problem with #1968 only happens when the path doesn’t start with |
@ahnpnl not sure, but if we will have test for this case then I would be sure of it |
hi @splincode , I have published 26.4.1-alpha.0. Would you please try and see if it fixes the issue ? You can try this alpha version when installing |
thank you 🙏 I will try latter |
@ahnpnl Works for me )) thank you) |
Thank you for your help with testing. 26.4.1 will come shortly. |
🐛 Bug Report
@ahnpnl Hi, I see this PR
#1969
But this incorrect work when we usage parent directory
After upgrade my test failed
Angular-RU/angular-ru-sdk#172
To Reproduce
we usage
../
in pathsMy test for correct behavior work with pathsToModuleNameMapper (ts-jest < 26.4.0):
https://github.com/Angular-RU/angular-ru-sdk/blob/master/packages/jest-utils/integration/tests/simple.spec.ts#L36
Expected behavior
https://github.com/kulshekhar/ts-jest/pull/1969/files#diff-0896c7082173d4fb5357a023b5205b17R10
could you add another test?
https://github.com/Angular-RU/angular-ru-sdk/blob/master/packages/jest-utils/tsconfig.json#L14
where are you referring to the parent directory?
The text was updated successfully, but these errors were encountered: