-
Notifications
You must be signed in to change notification settings - Fork 454
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
Diagnostics Uses a Huge Amount of Memory #479
Comments
I'm not sure what the cause of this could be - mostly because I never use diagnostics with ts-jest (I run diagnostics during dev and in the CI process). This feature was only added because a lot of folks wanted it. That said, |
I've just taken a look at this and I'm not sure there's anything that can be done in ts-jest to fix this. A better option might be to to run check for type errors separately (that's what I personally do). |
We actually run |
I'm not sure I understand 😕 |
I've added an additional note related to this: https://github.com/kulshekhar/ts-jest#ts-compiler--error-reporting That doesn't solve this problem but it has been put there to make users aware of the issue in advance. Ideally, type errors should be checked in a different step and not as part of testing. |
Update: Type-checking is enabled by default now. See readme for the link to documentation. |
Running the tests without a populated cache uses a huge amount of memory and time. I am seeing >2mins vs 10seconds on ef-carbon/dom
It seems the first workers that spawn crush somehow. Notice that the first 8 tests took 80seconds and then the rest passed in a few seconds.
That the diagnostics should add a small overhead
[ You can activate the debug logger by setting the environment variable TS_JEST_DEBUG="true" before running yarn test. The output of the logger
will be in <your_project_dir>/node_modules/ts-jest/debug.txt ]
debug.txt
The text was updated successfully, but these errors were encountered: