-
Notifications
You must be signed in to change notification settings - Fork 794
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
[2.6.0] jest can't resolve lerna dependencies (sym links) #2221
Comments
Ok, updated the repo to use latest |
Also added a branch which directly calls |
Just tried this again with Stencil 2.0.3 but it's still uncapable of resolving |
@rwaskiewicz @splitinfinities Hey guys! This is still a thing in the recent version |
Good news: I've fixed the issue with Commit: bitflower/stencil-lerna-tests@56e3b49 Still open: transform of imported sub-packages: Explanation: |
Duplicate of #2648 If you can share all their learnings in that issue, I would appreciate it. |
Stencil version:
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
Currently
jest
has issues resolving internallerna
-sym-linked packages. They work during normal build (both dev and prod). After researching and trying many possible workarounds I wonder if I have to switch to another test runner. However Stencil is closely tied tojest
.Would appreciate any help here!
Findings that make me believe that
jest
maintainers are not too keen on making sym links work better:jestjs/jest#1477
Things I have tried:
moduleNameMapper
, e.g.: Paths not being resolved. Cannot find module X from Y kulshekhar/ts-jest#269transformIgnorePatterns
: https://jaketrent.com/post/jest-on-lerna-repo/Expected behavior:
Tests run fine.
Related code:
Repo that re-produces the error scenario: https://github.com/bitflower/stencil-lerna-tests
The text was updated successfully, but these errors were encountered: