-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Angular TestBed memory leak #24048
Copy link
Copy link
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: testingIssues related to Angular testing features, such as TestBedIssues related to Angular testing features, such as TestBedfreq2: mediummemory leakIssue related to a memory leakIssue related to a memory leaktype: bug/fix
Milestone
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: testingIssues related to Angular testing features, such as TestBedIssues related to Angular testing features, such as TestBedfreq2: mediummemory leakIssue related to a memory leakIssue related to a memory leaktype: bug/fix
I'm submitting a...
Current behavior
When running Angular tests with Jest, the javascript heap keeps growing with each test untill the tests finish or an out of memory exception is thrown. The growing heap seems to be caused by the Angular TestBed, is it possible that this is the cause for the growing heapsize?
Expected behavior
The javascript heap size stays more or less constant for the whole test suite.
No out of memory exceptions are thrown.
Minimal reproduction of the problem with instructions
See the following bug report: jestjs/jest#6147
Environment