You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jest appears to be leaking memory for no discernible reason. Just having expect('a').toBe('a') 23 times in a file with nothing else in the repository is enough to cause a leak
To Reproduce
Steps to reproduce the behavior:
Have a file with 23 instances of expect('a').toBe('a')
Copy that file 10 times
Run those tests with --expose-gc, --runInBand and --logHeapUsage
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
Jest appears to be leaking memory for no discernible reason. Just having
expect('a').toBe('a')
23 times in a file with nothing else in the repository is enough to cause a leakTo Reproduce
Steps to reproduce the behavior:
expect('a').toBe('a')
--expose-gc
,--runInBand
and--logHeapUsage
Expected behavior
Memory should stay consistent and not leak.
Link to repl or repo (highly encouraged)
There's a repository to help reproduce it here
envinfo
The text was updated successfully, but these errors were encountered: