-
Notifications
You must be signed in to change notification settings - Fork 460
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
Stalls with Yarn and Node 10 #497
Comments
@nickmccurdy I understand that this could probably be replicated using any setup but creating that setup takes some time. So I'd greatly appreciate if you could add a minimal repo for this - something I can |
Yea sorry, I was being a bit lazy filing this issue, but now I can't even replicate this bug in my original project. 😓 It seems to work fine for some reason, I'll try to send a reproduction if I encounter it again. |
@nickmccurdy sure, no problem. I'll close this issue for now. If you run into it again and think it's related to ts-jest, this issue can be re-opened |
@evertbouw @mudcrab Do you have any public examples of this issue or something you can share? |
I may be able to create something tomorrow |
Created it https://github.com/evertbouw/ts-jest-node-10 When you run Jest here it will stall on the test that should fail. Fix the test and it works @kulshekhar can you reopen? thanks |
@evertbouw Sweet thanks! This has a similar setup to something I tried that passed, I'll see if I can figure out what part of the tsconfig causes it |
It's Yarn, not the config. I just realized I only see the issue in @evertbouw's repo when installing with Yarn. Installing with Yarn and testing with npm stalls, while installing with npm and testing with Yarn passes. This also happens if I recreate the lock file. Works fine on Node 9. |
@nickmccurdy does this issue persist even if plain jest is used with js? (trying to figure out whether it's a ts-jest specific issue) I don't have node 10 installed so I'm asking you |
|
The same configuration works if |
This looks like it might be a pure yarn issue: yarnpkg/yarn#5727 Does |
The description is vague, but I think it's a different issue. The |
hmmm. ok, I'll leave this open and actually test this out tomorrow in a fresh VM instead of posting various hypotheses :) |
No worries. 😄 It's a tricky one |
Can confirm, works fine if I use |
I've just tested this in a fresh VM. The install works. The test stalls (
|
Installing with
|
I'm not sure what's going on but given that this works after an In this case, this problem occurs with ts-jest but I'm not sure what in ts-jest is triggering this issue. Regardless of what's triggering it, it's unlikely that the fix for this lies in ts-jest. I'm going to keep this open so that if there's a workaround that we can implement in ts-jest to get around this, we'll do that. But I don't think a permanent fix for this issue lies here. |
Hm, maybe we could open a debugger in Jest's runner to see what stack frames it's stuck on when it's stalling. It would probably be an issue with the installation of a specific package in Yarn and Node 10. |
I was tempted to do that but ... time issues 🙁 (especially since I'm reasonably confident the fix doesn't lie in ts-jest) If I thought the fix was in ts-jest, I'd happily give this more time. |
I experienced this as well. Running on Node 9 resolved the issue. |
Could be related? nodejs/node#20258 |
Node 10.1 is out and appears to fix this. |
Issue
I have a project using
ts-jest
and Yarn, and my test suite now stalls completely with the first test in progress on Node 10. This is not an issue when using Jest with Node 9, npm, or withoutts-jest
.Expected behavior
Tests pass, as they do on Node 9 or npm.
Link to a minimal repo that reproduces this issue
Workarounds
npm install
, you can still use Yarn to run your test scriptThe text was updated successfully, but these errors were encountered: