Open apstanisic opened 1 year ago
Switched to vite, check if there is leak there.
There is logHeapUsage
, check that out
There is memory leak in vitest. it starts with 100mb heap and ends with 493mb heap. IDK if it's because of supertest, or memory leak in app. There is this bug
They are memory leaks (maybe supertest problem), and clash with changing db (there are locking mechanism, but it still happens). It also affects non db schema related tests (authz, files...). It works fine when running only one group.
Sometimes it also happens in unit tests. They are difficult to debug since it never happens when running only single test suite, and it happens only simetimes