Skip to content

test: add memory leak test#2542

Closed
kettanaito wants to merge 4 commits intomainfrom
fix/memory-leak
Closed

test: add memory leak test#2542
kettanaito wants to merge 4 commits intomainfrom
fix/memory-leak

Conversation

@kettanaito
Copy link
Member

@kettanaito kettanaito commented Jul 1, 2025

Update: According to the contributors' investigation, this leak originates from MockHttpSocket not removing the listeners from the passthrough socket instance once the socket is no longer needed. It's better we added the memory leak test in Interceptors.

@kettanaito kettanaito mentioned this pull request Jul 1, 2025
4 tasks
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jul 1, 2025

Open in StackBlitz

npm i https://pkg.pr.new/msw@2542

commit: 70a87ca

@kettanaito
Copy link
Member Author

Released: v2.12.8 🎉

This has been released in v2.12.8.

Get these changes by running the following command:

npm i msw@latest

Predictable release automation by Release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory leak with Node.js 20+

1 participant