Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest reports memory leak #10

Open
apstanisic opened this issue Oct 15, 2022 · 2 comments
Open

Jest reports memory leak #10

apstanisic opened this issue Oct 15, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@apstanisic
Copy link
Owner

apstanisic commented Oct 15, 2022

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

@apstanisic apstanisic added the enhancement New feature or request label Oct 15, 2022
@apstanisic apstanisic changed the title There are some issues with e2e api tests Jest reports memory leak Nov 2, 2022
@apstanisic
Copy link
Owner Author

Switched to vite, check if there is leak there.
There is logHeapUsage, check that out

@apstanisic
Copy link
Owner Author

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

@apstanisic apstanisic transferred this issue from another repository Mar 2, 2023
@apstanisic apstanisic transferred this issue from another repository Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant