-
Notifications
You must be signed in to change notification settings - Fork 452
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
TSC resolves symlinks but ts-jest does not #825
Comments
@KSXGitHub I believe this is not related to symlinks. What is your tsconfig and jest config? |
NOTES:
It was fine with flat |
Looking at your repo, those are weird linkage going on lol Anyway, where is the |
@KSXGitHub if you are sure it's related to symlinks, then I think this issue needs to be moved to jest. As a jest transformer, we are given a file path and then using it to read the file's content using system reads such as THe only thing I see that could come in to mess up everything is the cache, so you should try to see if you still have the issue when you run the tests with |
Can you just
This fails even in CI. |
this won't change anything, and I forgot to mention that we actually do not read the file as jest gives us its content as well As asked there #825 (comment) where can I find the source of |
|
I'll need to have some more time to clone your repo and check locally... but I'm pretty sure it's not related to ts-jest |
You may need to use pnpm (in place of yarn/npm) as well to produce the same layout. |
I think this can be closed. Works for me probably because of pnpm/pnpm#1007 |
The test works just fine, but it prints warning, corrupting terminal output, which is what this issue is about |
Please provide a minimal reproducible repository. There seems to be a whole slew of issues in relation to pnpm. |
This happens when running The way CodeBuild's caching work is that they cache Also, this does not happen on my local machine using |
fix: #825 handle symlinked modules (ala pnpm) correctly
Issue
TypeScript command resolves symlinked modules but ts-jest does not.
Steps to reproduce
I have a
node_modules
structure looks like this (generated by using pnpm as package manager):<root>/index.ts:
<root>/node_modules/.registry.npmjs.org/1.2.3/node_modules/foo/index.ts:
<root>/node_modules/.registry.npmjs.org/1.2.3/node_modules/bar/index.ts:
Expected behavior
No errors
Current behavior
This is travis log in my project: https://travis-ci.org/ksxnodemodules/external-dependencies/builds/444756379
The text was updated successfully, but these errors were encountered: