Jest is taking a lot of heap memory with (strings)

20 views Asked by At

As i run all my tests on jest i saw that i have problem with the heap memory (it grows arithmetically).

console.log(45)

Part of the jest tests with GC-tracking

I make a few chrome snapshots and saw that the strings memory allocation goes up on them.

Firs snapshot

Second snapshot

Third snapshot

Statistics

I am running node 20 and jest 29.7

I expect to lower the heap usage and did not try anything for now

0

There are 0 answers