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

toBuffer() causing open handles in jest tests #2490

Closed
radoslavirha opened this issue Feb 19, 2025 · 2 comments
Closed

toBuffer() causing open handles in jest tests #2490

radoslavirha opened this issue Feb 19, 2025 · 2 comments

Comments

@radoslavirha
Copy link

Hi,

I just noticed that version 3.1.0 has trouble with jest. When using jest with --detectOpenHandles flag, jest reports:

Jest has detected the following X open handles potentially keeping Jest from exiting and it's pointing to toBuffer() method.

Tried to downgrade to 2.11.2 and it's fine.

This happened on Mac M1 / Win machine.

Is there any solution? Or I should use downgraded version?

Thanks.

@chearon chearon closed this as completed in 494035d Apr 4, 2025
@chearon
Copy link
Collaborator

chearon commented Apr 4, 2025

Thanks for the report. There was a leak with synchronous toBuffer. It'll be fixed in the next release.

@radoslavirha
Copy link
Author

Thanks a lot @chearon !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants