-
Notifications
You must be signed in to change notification settings - Fork 304
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
Memory leak when running tests #186
Comments
Thanks! That's interesting, would be nice to have some more findings about that. Maybe it's related to jestjs/jest#6814 |
@thymikee not sure how to investigate this further, any ideas? |
We experience the same issue. For us it is zone.js that causes the problem. |
We were experimenting same memory leak problems during testing in our codebase (with 1K tests more or less). As @me-12 has mentioned, the problems seems to be related with I have been checking this PR angular/zone.js#1106 that seems to fix the problem. It is merged in Meanwhile, we are using an updated repo (thank you @JiaLiPassion) in our {
"zone.js": "git://github.com/JiaLiPassion/zone.js#20181005-dist"
} It is not the perfect solution but temporally solves the problem. Anyway, |
|
Zonejs released 0.8.27 which includes the fix for memory leak with jsdom. |
Somewhere within the jest preset angular setup it causes memory leaks on every test.
REPL: https://github.com/chris5287/repl-jest-preset-angular-leak
When removing
import "jest-preset-angular";
fromsetupJest.ts
, no memory leaks are detected.The text was updated successfully, but these errors were encountered: