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
Running 800 unit tests using testdouble, resulting in memory leak.
Issue
There are many testdouble usages that do not seem to be deleting properly. Therefore, when building on Jenkins, it terminates with the error message: FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
This image comes from a Heap Snapshot of some of the tests.
Our currently code consists of the following, but it doesn't seem to help resolve the memory leak. afterEach(function () { td.reset(); });
Are there any other lines that should be included to help with garbage collection?
Environment
node -v output: 18.20.4
npm -v (or yarn --version) output: 10.7.0
npm ls testdouble (or yarn list testdouble) version: 3.20.2
Failing Test
Fork the repo
Add a failing test (probably to the `/regression/src' directory)
Submit a pull request for the failing test or link to your branch here
Example Repo
Create a minimal repository that reproduces the issue
Make sure that a fresh clone can run only npm it and observe the issue
Description
Running 800 unit tests using testdouble, resulting in memory leak.
Issue
There are many testdouble usages that do not seem to be deleting properly. Therefore, when building on Jenkins, it terminates with the error message:
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
This image comes from a Heap Snapshot of some of the tests.
Our currently code consists of the following, but it doesn't seem to help resolve the memory leak.
afterEach(function () { td.reset(); });
Are there any other lines that should be included to help with garbage collection?
Environment
node -v
output: 18.20.4npm -v
(oryarn --version
) output: 10.7.0npm ls testdouble
(oryarn list testdouble
) version: 3.20.2Failing Test
Example Repo
npm it
and observe the issueRunkit Notebook
var td = require('testdouble')
at the topCode-fenced Examples
The text was updated successfully, but these errors were encountered: